diff options
author | joey <joey> | 2003-08-22 16:47:05 +0000 |
---|---|---|
committer | joey <joey> | 2003-08-22 16:47:05 +0000 |
commit | 5dd373940d0348cc4dce74d0b0aa148d35b29934 (patch) | |
tree | c726bed06a08ed41f8876af06997247d251b1d86 | |
parent | d1f803bc312f356ac639c06958f5009acf4114d2 (diff) | |
download | debhelper-5dd373940d0348cc4dce74d0b0aa148d35b29934.tar.gz |
r1594: * dh_python: Another patch, for pythonX.Y-foo packages.version_4.1.67
* dh_link: Improve error message if link destination is a directory.
Closes: #206689
-rw-r--r-- | debian/changelog | 8 | ||||
-rwxr-xr-x | dh_link | 5 | ||||
-rwxr-xr-x | dh_python | 13 | ||||
-rw-r--r-- | doc/TODO | 4 |
4 files changed, 22 insertions, 8 deletions
diff --git a/debian/changelog b/debian/changelog index e305c64a..61cc5cfb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +debhelper (4.1.67) unstable; urgency=low + + * dh_python: Another patch, for pythonX.Y-foo packages. + * dh_link: Improve error message if link destination is a directory. + Closes: #206689 + + -- Joey Hess <joeyh@debian.org> Fri, 22 Aug 2003 12:48:19 -0400 + debhelper (4.1.66) unstable; urgency=low * dh_link: rm -f every time, ln -f is not good enough if the link target @@ -162,7 +162,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # Make sure it's properly absolute. $src="/$src"; } - + + if (-d "$tmp/$dest" && ! -l "$tmp/$dest") { + error("link destination $tmp/$dest is a directory"); + } doit("rm", "-f", "$tmp/$dest"); doit("ln","-sf", $src, "$tmp/$dest"); } @@ -126,7 +126,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { my $strong_dep = 0; my $look_for_pythonXY = 1; - # First, the case of python-foo + # First, the case of python-foo and pythonX.Y-foo if ($package =~ /^python-/) { $dep_on_python = 1; $strong_dep = 1; @@ -135,11 +135,11 @@ foreach my $package (@{$dh{DOPACKAGES}}) { if (grep { "$_" eq "$pack" } GetPackages()) { addsubstvar($package, "python:Depends", $pack); } - else { - push @dirs, "usr/lib/python$python_version/site-packages" ; - push @dirs_so, "usr/lib/python$python_version/site-packages" ; - $look_for_pythonXY = 0; - } + } + 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" ; + $look_for_pythonXY = 0; } @dirs = grep -d, map "$tmp/$_", @dirs; @@ -274,4 +274,3 @@ Josselin Mouette <joss@debian.org> most ideas stolen from Brendan O'Dea <bod@debian.org> =cut - @@ -34,6 +34,10 @@ Wishlist items: --section is not given. So I should be able to stop parsing it myself for section, after dpkg 1.10 has been around long enough. +* Support comments in config files? (#206422) +* dh_installppp +* dh_installnetwork + Deprecated: * DH_COMPAT 1. Can be removed once all packages are seen to be using 2 or |