summaryrefslogtreecommitdiff
path: root/dh_python
diff options
context:
space:
mode:
authorjoey <joey>2005-06-13 16:04:10 +0000
committerjoey <joey>2005-06-13 16:04:10 +0000
commit46a21fd82209577d6ba69c79d243889ea4f3d332 (patch)
tree5fb08d46170b758512a98403b028a8c218ac9f27 /dh_python
parent90f4f5db1d9f9c5af67fa5e58f89211dc00c7fb2 (diff)
downloaddebhelper-46a21fd82209577d6ba69c79d243889ea4f3d332.tar.gz
r1762: * Add another test-case for dh_link.
* dh_python: Minimal fix from Joss for -V to make it search the right site-packages directories. Closes: #312661 *
Diffstat (limited to 'dh_python')
-rwxr-xr-xdh_python5
1 files changed, 2 insertions, 3 deletions
diff --git a/dh_python b/dh_python
index 3bd2ac7a..6a1f78f1 100755
--- a/dh_python
+++ b/dh_python
@@ -96,7 +96,6 @@ foreach (@python_allversions) {
# Check for -V
my $usepython = "python$python_version";
if($dh{V_FLAG_SET}) {
- $python_version = $dh{V_FLAG};
$usepython = $dh{V_FLAG};
$usepython =~ s/^/python/;
if (! grep { $_ eq $usepython } @python_allversions) {
@@ -140,8 +139,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
}
if ($package !~ /^python[0-9].[0-9]-/) {
- push @dirs, "usr/lib/python$python_version/site-packages" ;
- push @dirs_so, "usr/lib/python$python_version/site-packages" ;
+ push @dirs, "usr/lib/$usepython/site-packages";
+ push @dirs_so, "usr/lib/$usepython/site-packages";
$look_for_pythonXY = 0;
}