diff options
author | Jo Shields <directhex@apebox.org> | 2014-02-25 23:54:12 +0000 |
---|---|---|
committer | Jo Shields <directhex@apebox.org> | 2014-02-25 23:54:12 +0000 |
commit | 2192ca952bc23e1e448c66db2e31600da9cece27 (patch) | |
tree | 5d8f78b3ac1b9cd7751b8709128eed52f584ca40 | |
parent | 359452eaa990caf42b6509e6f64a1dcfa20e9c02 (diff) | |
download | mono-2192ca952bc23e1e448c66db2e31600da9cece27.tar.gz |
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.
-rw-r--r-- | debian/mono-gac.postinst | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/debian/mono-gac.postinst b/debian/mono-gac.postinst index 0eacafaab6..7c8a20e761 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 |