diff options
author | Bernd Zeimetz <bernd@bzed.de> | 2009-07-19 15:44:57 +0200 |
---|---|---|
committer | Bernd Zeimetz <bernd@bzed.de> | 2009-07-19 15:44:57 +0200 |
commit | cae436a130611501a515a2cb9f794d93edbb9a84 (patch) | |
tree | 4076a9b7d4e6477c9ad232b93ce571f60446ce12 /Debian | |
parent | 47687d38521549809ebcc85396142270fa1f21d3 (diff) | |
download | debhelper-cae436a130611501a515a2cb9f794d93edbb9a84.tar.gz |
Ensure that we find the right default dbg Python.
Diffstat (limited to 'Debian')
-rw-r--r-- | Debian/Debhelper/Buildsystem/python_distutils.pm | 8 |
1 files changed, 5 insertions, 3 deletions
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, @_); } } } |