summaryrefslogtreecommitdiff
path: root/dh_python
diff options
context:
space:
mode:
authorjoey <joey>2004-12-08 19:58:15 +0000
committerjoey <joey>2004-12-08 19:58:15 +0000
commit0a9afa6c5a1d57d596aa07d32052661ff146d3bf (patch)
tree6ec4a4cbd0a14926d318fe10ff1dbf92f791c8ad /dh_python
parent257593ffa0765054c936527a0a4e36c7c3097f7b (diff)
r1728: releasing version 4.2.26
Diffstat (limited to 'dh_python')
-rwxr-xr-xdh_python8
1 files changed, 5 insertions, 3 deletions
diff --git a/dh_python b/dh_python
index eb32fd46..9fbedc4c 100755
--- a/dh_python
+++ b/dh_python
@@ -50,9 +50,8 @@ extra names on the command line are searched for binary (.so) modules.
=item B<-V> I<version>
If the .py files your package ships are meant to be used by a specific
-pythonX.Y version, you can set this option with the desired X.Y python
-version.
-Do not use if you ship modules in /usr/lib/site-python.
+pythonX.Y version, you can use this option to specify the desired version,
+such as 2.3. Do not use if you ship modules in /usr/lib/site-python.
=item B<-n>, B<--noscripts>
@@ -99,6 +98,9 @@ my $usepython = "python$python_version";
if($dh{V_FLAG_SET}) {
$usepython = $dh{V_FLAG};
$usepython =~ s/^/python/;
+ if (! grep { $_ eq $usepython } @python_allversions) {
+ error("Unknown python version $dh{V_FLAG}");
+ }
}
# Cleaning the paths given on the command line