[Pkg-mono-svn-commits] [mono] 01/03: Only trigger mono-gac postinst on upgrades. This should fix an edge case when GAC-installing libraries which rely on machine.config's key remapping at the same time as mono-gac first-install, such as F#. Thanks to Christopher James Halse Rogers.

Mirco Bauer meebey at moszumanska.debian.org
Tue Apr 1 20:03:36 UTC 2014


This is an automated email from the git hooks/post-receive script.

meebey pushed a commit to branch master
in repository mono.

commit 04104956e1c5e6a8a650a615940ab37419b50700
Author: Jo Shields <directhex at apebox.org>
Date:   Tue Feb 25 23:54:12 2014 +0000

    Only trigger mono-gac postinst on upgrades. This should fix an edge case when GAC-installing libraries which rely on machine.config's key remapping at the same time as mono-gac first-install, such as F#. Thanks to Christopher James Halse Rogers.
---
 debian/mono-gac.postinst | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/debian/mono-gac.postinst b/debian/mono-gac.postinst
index 0eacafa..7c8a20e 100644
--- a/debian/mono-gac.postinst
+++ b/debian/mono-gac.postinst
@@ -1,12 +1,19 @@
 #!/bin/sh -e
 
-# Install the GAC
-if [ -x /usr/share/cli-common/gac-install ]; then
+# On upgrades we need to repopulate the GAC and framework paths
+# to accomodate any changes in layout
+#
+# We only need to do this on upgrade; on first configure we know
+# that any GAC libraries will call gac-install-package later.
+if [ -z "$2" ]; then
+    # Install the GAC
+    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
+    fi
+    # Install any framework libs
+    if [ -x /usr/share/cli-common/framework-install ]; then
 	/usr/share/cli-common/framework-install mono
+    fi
 fi
 
 # Update the alternatives

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mono/packages/mono.git



More information about the Pkg-mono-svn-commits mailing list