]> git.donarmstrong.com Git - debhelper.git/commitdiff
Ensure that we find the right default dbg Python.
authorBernd Zeimetz <bernd@bzed.de>
Sun, 19 Jul 2009 13:44:57 +0000 (15:44 +0200)
committerBernd Zeimetz <bernd@bzed.de>
Sun, 19 Jul 2009 13:44:57 +0000 (15:44 +0200)
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, @_);
                }
        }
 }