summaryrefslogtreecommitdiff
path: root/dh_link
diff options
context:
space:
mode:
authorjoey <joey>2003-08-19 23:52:24 +0000
committerjoey <joey>2003-08-19 23:52:24 +0000
commitd1f803bc312f356ac639c06958f5009acf4114d2 (patch)
tree3ee28d38d3869dc001abc6a18599a5cdb4392725 /dh_link
parent1f56418d00a8f406f53b06f3f0b1566e56c1feca (diff)
downloaddebhelper-d1f803bc312f356ac639c06958f5009acf4114d2.tar.gz
r1592: * dh_link: rm -f every time, ln -f is not good enough if the link targetversion_4.1.66
is an existing directory (aka, ln sucks). Closes: #206245 * dh_clean: honor -X for debian/tmp removal. Closes: #199952 more or less.
Diffstat (limited to 'dh_link')
-rwxr-xr-xdh_link4
1 files changed, 2 insertions, 2 deletions
diff --git a/dh_link b/dh_link
index 6cb889cd..8e66d671 100755
--- 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");
}
}