summaryrefslogtreecommitdiff
path: root/dh_install
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-07-15 09:24:15 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-07-15 09:24:15 -0400
commit3b1ff29785e19b462c1b3f6eece7a9aadd210ca8 (patch)
tree1a16fae47f1662504c8ee6a8817be153e1dc8e50 /dh_install
parentc87b3b9be81406cc0aa9338d2ed67667041aa588 (diff)
dh_install: Fix support for the case where debian/tmp is explicitly specified in filename paths despite being searched by default. Closes: #537140
Diffstat (limited to 'dh_install')
-rwxr-xr-xdh_install5
1 files changed, 3 insertions, 2 deletions
diff --git a/dh_install b/dh_install
index eb196e5..d01e3bc 100755
--- a/dh_install
+++ b/dh_install
@@ -166,8 +166,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if (! defined $dest) {
# Guess at destination directory.
$dest=$src;
- $dest=~s/^(.*\/)?\Q$srcdir\E\/// ||
- $dest=~s/^(.*\/)?debian\/tmp\///;
+ $dest=~s/^(.*\/)?\Q$srcdir\E\///;
+ $dest=~s/^(.*\/)?debian\/tmp\///;
+ print ">>$srcdir ($dest)\n";
$dest=dirname("/".$dest);
$tmpdest=1;
}