summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher James Halse Rogers <raof@ubuntu.com>2013-12-16 12:18:01 +0800
committerChristopher James Halse Rogers <raof@ubuntu.com>2013-12-16 12:18:01 +0800
commit37faf7705a086aeddcfb410fc0a8de920421807d (patch)
treecfb373b3bb6ec5c70b5625926451c90379f2bdd0
parentaa9c78d92f2c935530367879ee430bb493c24d8a (diff)
downloadmono-37faf7705a086aeddcfb410fc0a8de920421807d.tar.gz
Do the framework-install/framework-remove dance in mono-gac maint scripts.
This ensures our 3rd-party-ish framework libraries end up in the right place on upgrades. cf: gac-install/gac-remove
-rw-r--r--debian/mono-gac.postinst4
-rw-r--r--debian/mono-gac.prerm5
2 files changed, 9 insertions, 0 deletions
diff --git a/debian/mono-gac.postinst b/debian/mono-gac.postinst
index 3d93b4d4b6..0eacafaab6 100644
--- a/debian/mono-gac.postinst
+++ b/debian/mono-gac.postinst
@@ -4,6 +4,10 @@
if [ -x /usr/share/cli-common/gac-install ]; then
/usr/share/cli-common/gac-install mono
fi
+# Install any framework libs
+if [ -x /usr/share/cli-common/framework-install ]; then
+ /usr/share/cli-common/framework-install mono
+fi
# Update the alternatives
update-alternatives \
diff --git a/debian/mono-gac.prerm b/debian/mono-gac.prerm
index e774a00133..a050284030 100644
--- a/debian/mono-gac.prerm
+++ b/debian/mono-gac.prerm
@@ -7,6 +7,11 @@ if [ "$1" = remove ]; then
if [ -x /usr/share/cli-common/gac-remove ]; then
/usr/share/cli-common/gac-remove mono
fi
+
+ # Remove any framework libs
+ if [ -x /usr/share/cli-common/framework-remove ]; then
+ /usr/share/cli-common/framework-remove mono
+ fi
fi
#DEBHELPER#