From: Joey Hess <joey@gnu.kitenet.net> Date: Fri, 14 Aug 2009 01:48:14 +0000 (-0400) Subject: improve python regexps, per bzed X-Git-Tag: 7.3.13~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9973f4e4c99dc7e23d3494e27d52c27415713c86;p=debhelper.git improve python regexps, per bzed --- diff --git a/Debian/Debhelper/Buildsystem/python_distutils.pm b/Debian/Debhelper/Buildsystem/python_distutils.pm index 4dc2a0d..bc6e71f 100644 --- a/Debian/Debhelper/Buildsystem/python_distutils.pm +++ b/Debian/Debhelper/Buildsystem/python_distutils.pm @@ -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"); }