-debhelper (4.2.37) unstable; urgency=low
+debhelper (4.2.38) UNRELEASED; urgency=low
* Document getpackages in PROGRAMMING.
- * Patch from Jeff Bailey to make dh_python set $python_version if -V is
- specified so it looks in the right site-packages directories.
- Closes: #312661
+ * 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
+ *
-- Joey Hess <joeyh@debian.org> Thu, 9 Jun 2005 10:01:20 -0400
# 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) {
}
}
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;
}
#!/usr/bin/perl
use Test;
-plan(tests => 7);
+plan(tests => 8);
# It used to not make absolute links in this situation, and it should.
# #37774
# let's make sure it makes simple relative links ok.
system("./dh_link","usr/bin/foo","usr/bin/bar");
ok(readlink("debian/debhelper/usr/bin/bar"), "foo");
+system("./dh_link","sbin/foo","sbin/bar");
+ok(readlink("debian/debhelper/sbin/bar"), "foo");
# ok, more complex relative links.
system("./dh_link","usr/lib/1","usr/bin/2");