From f79ed4ddd81b299fe9b7aab55c0ef01b89989910 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 22 Oct 2012 16:07:28 -0400 Subject: adjust other fix This is really atrocious, but IIRC the order pythons are run in matters, so the earlier mangling of @python_requested must remain, and so unmangle it here. --- Debian/Debhelper/Buildsystem/python_distutils.pm | 9 ++++++++- debian/changelog | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Debian/Debhelper/Buildsystem/python_distutils.pm b/Debian/Debhelper/Buildsystem/python_distutils.pm index 81cff3c9..fd317306 100644 --- a/Debian/Debhelper/Buildsystem/python_distutils.pm +++ b/Debian/Debhelper/Buildsystem/python_distutils.pm @@ -155,7 +155,14 @@ sub setup_py { } foreach my $python (@python_dbg, @python_requested) { - if (-f "/usr/lib/$python/distutils/__init__.py") { + my $python_with_version = $python; + if ($python eq "python") { + $python_with_version = $python_default; + } + elsif ($python eq "python-dbg") { + $python_with_version = $python_default."-dbg"; + } + if (-f "/usr/lib/$python_with_version/distutils/__init__.py") { # To allow backports of debhelper we don't pass # --install-layout=deb to 'setup.py install` for # those Python versions where the option is diff --git a/debian/changelog b/debian/changelog index a9af53d5..b977faf7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,7 +11,7 @@ debhelper (9.20120609) UNRELEASED; urgency=low * python distutils buildsystem: When checking if a version of python is installed, don't trust the presense of the executable, as a python2.X-minimal package may provide it while not having - distutils installed. Closes: #683557 + distutils installed. Closes: #683557, #690378 * dh_icons: Improve documentation. Closes: #684895 * Improve -X documentation. Closes: #686696 * Support installing multiple doc-base files which use the same doc-id. -- cgit v1.2.3