From f94b4b1aea929a8af7d093a118a570f8739b9574 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 30 Jun 2009 12:48:28 -0400 Subject: [PATCH] dh_install: Handle correctly the case where a glob expands to a dangling symlink, installing the dangling link as requested. Closes: #534565 --- debian/changelog | 8 ++++++++ dh_install | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 941331d..85cdfe8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +debhelper (7.2.19) UNRELEASED; urgency=low + + * dh_install: Handle correctly the case where a glob expands to + a dangling symlink, installing the dangling link as requested. + Closes: #534565 + + -- Joey Hess Tue, 30 Jun 2009 12:46:22 -0400 + debhelper (7.2.18) unstable; urgency=low * dh_shlibdeps: Ensure DEBIAN directory exists, as dpkg-shlibdeps diff --git a/dh_install b/dh_install index c83ec81..3d9a562 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"; } } -- 2.39.5