]> git.donarmstrong.com Git - debhelper.git/commitdiff
minor improvement
authorJoey Hess <joey@gnu.kitenet.net>
Sun, 19 Jul 2009 07:34:07 +0000 (09:34 +0200)
committerJoey Hess <joey@gnu.kitenet.net>
Sun, 19 Jul 2009 07:34:07 +0000 (09:34 +0200)
Debian/Debhelper/Buildsystem/python_distutils.pm

index 9468e38fe4a2010464ff74b46b23c966db517a2a..502bf24ff7d1653963ecbc6337d92eb666cf6bd9 100644 (file)
@@ -89,9 +89,9 @@ sub setup_py {
        # We need to to run setup.py with the default python first
        # as distutils/setuptools modifies the shebang lines of scripts.
        # This ensures that #!/usr/bin/python is used and not pythonX.Y
-       $this->doit_in_sourcedir("python", "setup.py", $act, @_);
-       for my $python (grep(!/^$python_default/, (split ' ', `pyversions -r 2>/dev/null`))) {
-               if (-x "/usr/bin/" . $python) {
+       foreach my $python ("python", grep(!/^$python_default/,
+                               (split ' ', `pyversions -r 2>/dev/null`))) {
+               if (-x "/usr/bin/".$python) {
                        $this->doit_in_sourcedir($python, "setup.py", $act, @_);
                }
        }