Bug#591599: dependencies need to move to pre-depend?
tags 591599 + patch thanks attached patch should fix this bug diff -u pootle-2.0.5/debian/changelog pootle-2.0.5/debian/changelog --- pootle-2.0.5/debian/changelog +++ pootle-2.0.5/debian/changelog @@ -1,3 +1,11 @@ +pootle (2.0.5-0.2) UNRELEASED; urgency=medium + + * Non-maintainer upload + * Run update-python-modules before invoking django-admin (closes: 591599) + * Remove /var/lib/pootle on purge + + -- Piotr Ożarowski pi...@debian.org Thu, 26 Aug 2010 22:14:05 +0200 + pootle (2.0.5-0.1) unstable; urgency=low * Non-maintainer upload with maintainer's agreement diff -u pootle-2.0.5/debian/pootle.postinst pootle-2.0.5/debian/pootle.postinst --- pootle-2.0.5/debian/pootle.postinst +++ pootle-2.0.5/debian/pootle.postinst @@ -60,6 +60,7 @@ case $1 in configure) if [ -z $2 ]; then +update-python-modules -p su pootle -p -c django-admin syncdb --settings pootle.settings --noinput su pootle -p -c django-admin initdb --settings pootle.settings su pootle -p -c django-admin refresh_stats --settings pootle.settings @@ -76,6 +77,7 @@ ;; esac done +update-python-modules -p su pootle -p -c django-admin syncdb --settings pootle.settings --noinput su pootle -p -c django-admin initdb --settings pootle.settings su pootle -p -c python /usr/share/pyshared/pootle/tools/import_old_prefs.py /etc/pootle/pootle.prefs /etc/pootle/users.prefs only in patch2: unchanged: --- pootle-2.0.5.orig/debian/pootle.postrm +++ pootle-2.0.5/debian/pootle.postrm @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if [ $1 = purge ]; then + rm -rf /var/lib/pootle/ +fi + +#DEBHELPER#
Bug#591599: dependencies need to move to pre-depend?
tags 591599 + patch thanks attached patch should fix this bug diff -u pootle-2.0.5/debian/changelog pootle-2.0.5/debian/changelog --- pootle-2.0.5/debian/changelog +++ pootle-2.0.5/debian/changelog @@ -1,3 +1,11 @@ +pootle (2.0.5-0.2) UNRELEASED; urgency=medium + + * Non-maintainer upload + * Run update-python-modules before invoking django-admin (closes: 591599) + * Remove /var/lib/pootle on purge + + -- Piotr Ożarowski pi...@debian.org Thu, 26 Aug 2010 22:14:05 +0200 + pootle (2.0.5-0.1) unstable; urgency=low * Non-maintainer upload with maintainer's agreement diff -u pootle-2.0.5/debian/pootle.postinst pootle-2.0.5/debian/pootle.postinst --- pootle-2.0.5/debian/pootle.postinst +++ pootle-2.0.5/debian/pootle.postinst @@ -60,6 +60,7 @@ case $1 in configure) if [ -z $2 ]; then +update-python-modules -p su pootle -p -c django-admin syncdb --settings pootle.settings --noinput su pootle -p -c django-admin initdb --settings pootle.settings su pootle -p -c django-admin refresh_stats --settings pootle.settings @@ -76,6 +77,7 @@ ;; esac done +update-python-modules -p su pootle -p -c django-admin syncdb --settings pootle.settings --noinput su pootle -p -c django-admin initdb --settings pootle.settings su pootle -p -c python /usr/share/pyshared/pootle/tools/import_old_prefs.py /etc/pootle/pootle.prefs /etc/pootle/users.prefs only in patch2: unchanged: --- pootle-2.0.5.orig/debian/pootle.postrm +++ pootle-2.0.5/debian/pootle.postrm @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if [ $1 = purge ]; then + rm -rf /var/lib/pootle/ +fi + +#DEBHELPER#
Bug#591599: dependencies need to move to pre-depend?
I gave it a try today and it seems what happens is the post install script is run before some of the dependencies are properly installed (in my case it was django-registration) cheers, Alaa -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org