]> git.donarmstrong.com Git - debhelper.git/blobdiff - Debian/Debhelper/Buildsystem/python_distutils.pm
improve python regexps, per bzed
[debhelper.git] / 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");
                        }