]> git.donarmstrong.com Git - debhelper.git/commitdiff
improve python regexps, per bzed
authorJoey Hess <joey@gnu.kitenet.net>
Fri, 14 Aug 2009 01:48:14 +0000 (21:48 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Fri, 14 Aug 2009 01:48:14 +0000 (21:48 -0400)
Debian/Debhelper/Buildsystem/python_distutils.pm

index 4dc2a0d92383f7f02469825008f634c191edead1..bc6e71f7756f0ff17fe38934e66adb2574ab8fbd 100644 (file)
@@ -145,8 +145,8 @@ sub setup_py {
                        # ignored by distutils/setuptools.
                        if ( $act eq "install" and not
                             ( ($python =~ /^python(?:-dbg)?$/
-                                and $python_default =~ /^python2.[2345]$/)
-                             or $python =~ /^python2.[2345](?:-dbg)?$/ )) {
+                                and $python_default =~ /^python2\.[2345]$/)
+                             or $python =~ /^python2\.[2345](?:-dbg)?$/ )) {
                                $this->doit_in_sourcedir($python, "setup.py",
                                                $act, @_, "--install-layout=deb");
                        }