Fix bug 604213 debian debian_1.1-1
authorPaul Crowley <paul@lshift.net>
Sat, 18 Dec 2010 15:48:43 +0000
branchdebian
changeset 291 32dba1a70a54
parent 290 199952d928e0
child 293 7b5cbcd6dbbf
Fix bug 604213
debian/changelog
debian/postinst
--- a/debian/changelog	Sat Dec 18 15:26:09 2010 +0000
+++ b/debian/changelog	Sat Dec 18 15:48:43 2010 +0000
@@ -3,9 +3,11 @@
   * New upstream version
   * Fix "leaves unowned files on purge": Delete user/group only
     when purging data (Closes: #605584)
+  * Fix "installation fails with aptitude": run update-python-modules
+    to ensure hg will work before using it (Closes: #604213)
   * Add translation for pt_BR  (Closes: #607407)
 
- -- Paul Crowley <paul@lshift.net>  Sat, 18 Dec 2010 13:32:26 +0000
+ -- Paul Crowley <paul@lshift.net>  Sat, 18 Dec 2010 15:46:45 +0000
 
 mercurial-server (1.0.1-1.1) unstable; urgency=medium
 
--- a/debian/postinst	Sat Dec 18 15:26:09 2010 +0000
+++ b/debian/postinst	Sat Dec 18 15:48:43 2010 +0000
@@ -13,6 +13,8 @@
                 --shell /bin/sh --group \
                 --home /var/lib/mercurial-server \
                 --gecos "Mercurial repositories" hg
+            # Make sure Mercurial's modules will work when we come to use them
+            update-python-modules -p
             su -c "/usr/share/mercurial-server/init/hginit /usr/share/mercurial-server" hg
         fi
     ;;