From a1a5d931a93dfc61c81f7b2590ec66a47513e3be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org>
Date: Thu, 28 Jun 2012 12:01:36 +0200
Subject: [PATCH] Debhelper's python2 sequence now inserts dh_python2 before
 dh_installinit (closes: 670418)

---
 debian/changelog | 2 ++
 python2.pm       | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index dd9f031..9da77f9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,8 @@ python-defaults (2.7.3-1) unstable; urgency=low
   * pyversions, dh_python2, pycompile: allow to override system's list of
     supported Python versions via DEBPYTHON_SUPPORTED and default Python
     version via DEBPYTHON_DEFAULT env. variables
+  * Debhelper's python2 sequence now inserts dh_python2 before dh_installinit
+    (closes: 670418)
 
   [ Scott Kitterman ]
   * Bump upstream version to match current unstable/wheezy python2.7 version
diff --git a/python2.pm b/python2.pm
index 2893a4f..08d84a4 100644
--- a/python2.pm
+++ b/python2.pm
@@ -5,7 +5,7 @@ use warnings;
 use strict;
 use Debian::Debhelper::Dh_Lib;
 
-insert_after("dh_perl", "dh_python2");
+insert_before("dh_installinit", "dh_python2");
 remove_command("dh_pycentral");
 remove_command("dh_pysupport");
 
-- 
GitLab