summaryrefslogtreecommitdiff
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
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
-rw-r--r--debian/changelog8
-rwxr-xr-xdh_install5
2 files changed, 11 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 185afb8..b62e78d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+debhelper (7.2.23) UNRELEASED; urgency=low
+
+ * dh_install: Fix support for the case where debian/tmp is
+ explicitly specified in filename paths despite being searched by
+ default. Closes: #537140
+
+ -- Joey Hess <joeyh@debian.org> Wed, 15 Jul 2009 09:23:25 -0400
+
debhelper (7.2.22) unstable; urgency=low
* dh_install: Fix support for the case where --sourcedir=debian/tmp/foo
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;
}