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 /dh_link | |
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
Diffstat (limited to 'dh_link')
-rwxr-xr-x | dh_link | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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"); } |