]> git.donarmstrong.com Git - debhelper.git/blobdiff - Debian/Debhelper/Buildsystem/python_distutils.pm
Ensure that we find the right default dbg Python.
[debhelper.git] / Debian / Debhelper / Buildsystem / python_distutils.pm
index 9274a7d131c5840d14fe6d187d250d7be12e87f9..4e98226d009935c5115f2a05e5dd8b2a3c255944 100644 (file)
@@ -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, @_);
                }
        }
 }