X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debian%2FDebhelper%2FBuildsystem%2Fpython_distutils.pm;h=4e98226d009935c5115f2a05e5dd8b2a3c255944;hb=cae436a130611501a515a2cb9f794d93edbb9a84;hp=9274a7d131c5840d14fe6d187d250d7be12e87f9;hpb=47687d38521549809ebcc85396142270fa1f21d3;p=debhelper.git diff --git a/Debian/Debhelper/Buildsystem/python_distutils.pm b/Debian/Debhelper/Buildsystem/python_distutils.pm index 9274a7d..4e98226 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, @_); } } }