summaryrefslogtreecommitdiff
path: root/dh_install
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-06-30 12:48:28 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-06-30 12:48:28 -0400
commitf94b4b1aea929a8af7d093a118a570f8739b9574 (patch)
tree1e52c1302cdd2c4f4d5a62cd7daf419148e04ac0 /dh_install
parentd5872326dc49c2cb7c017748e5f592f53db74cb8 (diff)
dh_install: Handle correctly the case where a glob expands to a dangling symlink, installing the dangling link as requested. Closes: #534565
Diffstat (limited to 'dh_install')
-rwxr-xr-xdh_install2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh_install b/dh_install
index c83ec81b..3d9a562d 100755
--- a/dh_install
+++ b/dh_install
@@ -147,7 +147,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
my @found = glob "$srcdir/$glob";
if (! compat(6)) {
# Fall back to looking in debian/tmp.
- if (! @found || ! -e $found[0]) {
+ if (! @found || ! (-e $found[0] || -l $found[0])) {
@found = glob "debian/tmp/$glob";
}
}