tags 362487 +patch
thanks

* Norbert Tretkowski wrote:
> /usr/lib/python2.3/site-packages/mercurial/templates is now a
> symlink, but was a directory before. Empty directories can't be
> replaced with a symlink by dpkg, you need to take care of this in
> the postinst script.

Attached patch fixes the issue.

                Norbert
diff -Nur mercurial-0.8.1.orig/debian/postinst mercurial-0.8.1/debian/postinst
--- mercurial-0.8.1.orig/debian/postinst        1970-01-01 00:00:00.000000000 
+0000
+++ mercurial-0.8.1/debian/postinst     2006-04-15 12:36:06.000000000 +0000
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+set -e
+
+case "$1" in
+    configure)
+       if [ -d /usr/lib/python2.3/site-packages/mercurial/templates -a ! -L 
/usr/lib/python2.3/site-packages/mercurial/templates ]; then
+         (rmdir /usr/lib/python2.3/site-packages/mercurial/templates && ln -fs 
../../../../share/mercurial/templates/ 
/usr/lib/python2.3/site-packages/mercurial/templates) || true
+       fi
+    ;;
+
+esac
+
+#DEBHELPER#
+
+exit 0

Reply via email to