]> git.donarmstrong.com Git - debhelper.git/commitdiff
r1592: * dh_link: rm -f every time, ln -f is not good enough if the link target version_4.1.66
authorjoey <joey>
Tue, 19 Aug 2003 23:52:24 +0000 (23:52 +0000)
committerjoey <joey>
Tue, 19 Aug 2003 23:52:24 +0000 (23:52 +0000)
     is an existing directory (aka, ln sucks). Closes: #206245
   * dh_clean: honor -X for debian/tmp removal. Closes: #199952 more or less.

debian/changelog
dh_clean
dh_link

index e5e06fe28589024a04b3fedd536d81e2ba9589c9..e305c64a4d2da47297f09e7ffd4c336db6aae900 100644 (file)
@@ -1,3 +1,11 @@
+debhelper (4.1.66) unstable; urgency=low
+
+  * dh_link: rm -f every time, ln -f is not good enough if the link target
+    is an existing directory (aka, ln sucks). Closes: #206245
+  * dh_clean: honor -X for debian/tmp removal. Closes: #199952 more or less.
+
+ -- Joey Hess <joeyh@debian.org>  Tue, 19 Aug 2003 19:52:53 -0400
+
 debhelper (4.1.65) unstable; urgency=low
 
   * Converted several chown 0.0 to chown 0:0 for POSIX 200112.
index d4c5943a102437fe211c828d45b297a31d8530d0..9b5885fe2d42e67cfdcd49a04b111051d2649aa4 100755 (executable)
--- a/dh_clean
+++ b/dh_clean
@@ -106,7 +106,8 @@ if (! $dh{D_FLAG}) {
                unless excludefile("autom4te.cache");
 }
 
-doit('rm', '-rf', 'debian/tmp') if -x 'debian/tmp' && ! compat(1);
+doit('rm', '-rf', 'debian/tmp') if -x 'debian/tmp' && ! compat(1) &&
+                                   ! excludefile("debian/tmp");
 
 =head1 SEE ALSO
 
diff --git a/dh_link b/dh_link
index 6cb889cdd79ea3b92132f2f9ee0ca79cdbc51cbb..8e66d671d3e75c0200d3580729fb9253598bd3d4 100755 (executable)
--- a/dh_link
+++ b/dh_link
@@ -119,7 +119,6 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                                        push @links, "$dir/$target";
                                }
                                push @links, "$dir/$_";
-                               doit("rm","-f",$_);
                                
                        },
                        $tmp);
@@ -164,7 +163,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                        $src="/$src";
                }
                
-               doit("ln","-sf",$src,"$tmp/$dest");
+               doit("rm", "-f", "$tmp/$dest");
+               doit("ln","-sf", $src, "$tmp/$dest");
        }
 }