]> git.donarmstrong.com Git - debhelper.git/commitdiff
r1594: * dh_python: Another patch, for pythonX.Y-foo packages. version_4.1.67
authorjoey <joey>
Fri, 22 Aug 2003 16:47:05 +0000 (16:47 +0000)
committerjoey <joey>
Fri, 22 Aug 2003 16:47:05 +0000 (16:47 +0000)
   * dh_link: Improve error message if link destination is a directory.
Closes: #206689
debian/changelog
dh_link
dh_python
doc/TODO

index e305c64a4d2da47297f09e7ffd4c336db6aae900..61cc5cfb61f0cfbd0b3fe60d392411e08b48b4fd 100644 (file)
@@ -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
diff --git a/dh_link b/dh_link
index 8e66d671d3e75c0200d3580729fb9253598bd3d4..7c51d06ca0fd8b7e2f95811c51634911e8e5a14c 100755 (executable)
--- a/dh_link
+++ b/dh_link
@@ -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");
        }
index 952a77d9293ead3c3c1d4503ae0bbce4ef25a098..5c19ef7d4acbe3f9433600b02296a6fc1c9eb81d 100755 (executable)
--- a/dh_python
+++ b/dh_python
@@ -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
-
index 7dc57ff5d539e5ba33499b6b9090e6de2c0b0786..fdeb606f02e867a8fac85be6f05d465e9b566abb 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -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