[Pkg-mono-svn-commits] [SCM] mono-tools branch, master, updated. debian/2.10-4

Iain Lane laney at debian.org
Tue Jun 26 21:50:45 UTC 2012


The following commit has been merged in the master branch:
commit 51d46c91623804283448974857cc4f08260272a8
Author: Iain Lane <laney at debian.org>
Date:   Tue Jun 26 18:53:20 2012 +0100

    When triggered, manually install mono bits
    
    This is to work around dpkg bug #671711.

diff --git a/debian/monodoc-browser.postinst b/debian/monodoc-browser.postinst
index 3ea456c..06d4502 100644
--- a/debian/monodoc-browser.postinst
+++ b/debian/monodoc-browser.postinst
@@ -13,7 +13,25 @@ case "$1" in
 
     triggered)
 
-        /usr/bin/update-monodoc
+        # update-monodoc needs libgtk2.0-cil to be configured
+        # but we aren't guaranteed this due to #671711
+
+        # Try to register stuff manually (these commands are idempotent, so
+        # it'll be fine when the real postinst is run later on)
+        mono_gac_status=`dpkg-query -f '${Status}' -W mono-gac`
+        if [ "$mono_gac_status" != "install ok installed" -a \
+            -x /usr/share/cli-common/gac-install ]; then
+            /usr/share/cli-common/gac-package-install mono
+        fi
+
+        libgtk_cil_status=`dpkg-query -f '${Status}' -W libgtk2.0-cil`
+        if [ "$libgtk_cil_status" != "install ok installed" -a \
+            -x /usr/share/cli-common/gac-package-install ]; then
+            /usr/share/cli-common/gac-package-install libgtk2.0-cil
+        fi
+
+        # Now don't fail; we've done the best we can.
+        /usr/bin/update-monodoc || true
 
         ;;
 

-- 
mono-tools



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