[Python-apps-commits] r955 - in packages/mercurial/trunk/debian (mercurial.postinst)

vdanjean at users.alioth.debian.org vdanjean at users.alioth.debian.org
Mon Apr 14 12:44:12 UTC 2008


    Date: Monday, April 14, 2008 @ 12:44:10
  Author: vdanjean
Revision: 955

inotify is not always available (on etch for example)
enabling this extension on install only if available

Modified:
  packages/mercurial/trunk/debian/mercurial.postinst

Modified: packages/mercurial/trunk/debian/mercurial.postinst
===================================================================
--- packages/mercurial/trunk/debian/mercurial.postinst	2008-04-13 17:21:54 UTC (rev 954)
+++ packages/mercurial/trunk/debian/mercurial.postinst	2008-04-14 12:44:10 UTC (rev 955)
@@ -32,6 +32,13 @@
         test -d /usr/share/doc/$dep || enable=false
 	reason="package '$dep' is not installed"
 	;;
+    inotify)
+        # etch does not build the inotify extension due to a too old libc
+    	if test "$(ls /usr/lib/python-support/mercurial/python*/hgext/inotify 2>/dev/null | wc -l)" = 0; then
+	    enable=false
+	    reason="not built probably due to a lack of support (old libc, ...)"
+	fi
+	;;
     *)
     	echo "Internal error"
 	exit 1
@@ -66,6 +73,7 @@
 	  cp /usr/share/mercurial/$conffile "$TMPFILE"
 	  check_ext "$TMPFILE" hgk wish
 	  check_ext "$TMPFILE" highlight python-pygments
+	  check_ext "$TMPFILE" inotify inotify
 	  ucf --sum-file /usr/share/mercurial/$conffile.md5sums --three-way \
 		"$TMPFILE" /etc/mercurial/hgrc.d/$conffile
 	  ucfr mercurial /etc/hgrc.d/$conffile




More information about the Python-apps-commits mailing list