summaryrefslogtreecommitdiff
path: root/dh_python
diff options
context:
space:
mode:
authorjoey <joey>2003-05-24 15:56:13 +0000
committerjoey <joey>2003-05-24 15:56:13 +0000
commitace87ed101089bbbaddce7274d76f02652e5b0a6 (patch)
treec62f491a99100fbbdedb3479a480f49ec07d49a2 /dh_python
parent20c961d63ea4d305bf673b8a55f2fb9839959ecf (diff)
r588: * Typo fixes from Adam Garside.
* dh_python: don't bother terminating the regexp, 2.2.3c1 for example. Closes: #194531
Diffstat (limited to 'dh_python')
-rwxr-xr-xdh_python2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh_python b/dh_python
index 3a001bd..d936f31 100755
--- a/dh_python
+++ b/dh_python
@@ -67,7 +67,7 @@ my $python_version = `$python -V 2>&1`;
if ("$python_version" eq "") {
error("Python is not installed, aborting. (Probably forgot to Build-Depend on python.)");
}
-elsif ($python_version =~ m/^Python\s+(\d+)\.(\d+)\.\d+\+?\n$/) {
+elsif ($python_version =~ m/^Python\s+(\d+)\.(\d+)\.\d+/) {
$python_version = "$1.$2" ;
$python_major = $1 ;
} else {