summaryrefslogtreecommitdiff
path: root/dh_python
diff options
context:
space:
mode:
authorjoey <joey>2003-05-20 21:53:57 +0000
committerjoey <joey>2003-05-20 21:53:57 +0000
commitfbdf58f81f0cbe7cf12fa621ef23deddd9b5c3a3 (patch)
treea96cff718c850f373afd24df91d17516ac2a6d75 /dh_python
parentc852d31331ae45515d690688320c7ef8b63cd68e (diff)
r586: * dh_python: allow for a + at the end of the python version, as in the
python in stable, version 2.1.3+.
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 1ed44714..3a001bd4 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+\+?\n$/) {
$python_version = "$1.$2" ;
$python_major = $1 ;
} else {