From cae436a130611501a515a2cb9f794d93edbb9a84 Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Sun, 19 Jul 2009 15:44:57 +0200 Subject: Ensure that we find the right default dbg Python. --- Debian/Debhelper/Buildsystem/python_distutils.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Debian/Debhelper') diff --git a/Debian/Debhelper/Buildsystem/python_distutils.pm b/Debian/Debhelper/Buildsystem/python_distutils.pm index 9274a7d1..4e98226d 100644 --- a/Debian/Debhelper/Buildsystem/python_distutils.pm +++ b/Debian/Debhelper/Buildsystem/python_distutils.pm @@ -131,10 +131,12 @@ sub setup_py { $this->doit_in_sourcedir($python, "setup.py", $act, @_); } $python = $python . "-dbg"; - if ((grep /^(python-all-dbg|$python)/, @dbg_build_needed) - or (($python eq "python-dbg") - and (grep /^$python_default/, @dbg_build_needed))){ + if (grep /^(python-all-dbg|$python)/, @dbg_build_needed) { $this->doit_in_sourcedir($python, "setup.py", $act, @_); + } elsif (($python eq "python-dbg") + and (grep /^$python_default/, @dbg_build_needed)) { + $this->doit_in_sourcedir($python_default."-dbg", + "setup.py", $act, @_); } } } -- cgit v1.2.3