diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-07-15 09:24:15 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-07-15 09:24:15 -0400 |
commit | 3b1ff29785e19b462c1b3f6eece7a9aadd210ca8 (patch) | |
tree | 1a16fae47f1662504c8ee6a8817be153e1dc8e50 | |
parent | c87b3b9be81406cc0aa9338d2ed67667041aa588 (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/changelog | 8 | ||||
-rwxr-xr-x | dh_install | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index 185afb8f..b62e78d9 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 @@ -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; } |