From a71b4095bfbae02ed2a14bc2e883c899fb28300a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 14 Sep 2009 13:11:07 -0400 Subject: Reorder dh_pysupport call in dh sequence to come before dh_installinit, so the generated postinst script registers python modules before trying to use them. Closes: #546293 --- Debian/Debhelper/Sequence/python_support.pm | 2 +- debian/changelog | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Debian/Debhelper/Sequence/python_support.pm b/Debian/Debhelper/Sequence/python_support.pm index 3d03ebb3..c93d2126 100644 --- a/Debian/Debhelper/Sequence/python_support.pm +++ b/Debian/Debhelper/Sequence/python_support.pm @@ -9,7 +9,7 @@ use Debian::Debhelper::Dh_Lib; # (This would not be needed if this file was contained in the python-support # package.) if (-x "/usr/bin/dh_pysupport") { - insert_after("dh_perl", "dh_pysupport"); + insert_before("dh_installinit", "dh_pysupport"); } 1 diff --git a/debian/changelog b/debian/changelog index 7683e69a..4cc76c17 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,9 @@ debhelper (7.4.2) UNRELEASED; urgency=low documentation directories. This is easier to use and more flexible than the old method of running dh_link first to make a broken symlink. Closes: #545676 Thanks, Colin Watson + * Reorder dh_pysupport call in dh sequence to come before + dh_installinit, so the generated postinst script registers + python modules before trying to use them. Closes: #546293 -- Joey Hess Mon, 07 Sep 2009 12:48:39 -0400 -- cgit v1.2.3