--- 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
;;