summaryrefslogtreecommitdiff
path: root/dh_install
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-07-14 17:15:18 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-07-14 17:15:18 -0400
commita75d695219f0a4613b647e7088794f6c1286fd54 (patch)
tree2166501d8fe0a459085a07b6cad12f00ec0dd8fe /dh_install
parent1681cb48a6cb9f33de3fc2da5b62ace493dde79a (diff)
parentc87b3b9be81406cc0aa9338d2ed67667041aa588 (diff)
Merge branch 'master' into buildsystems
Conflicts: debian/changelog
Diffstat (limited to 'dh_install')
-rwxr-xr-xdh_install3
1 files changed, 2 insertions, 1 deletions
diff --git a/dh_install b/dh_install
index c5647c6..a8e08c2 100755
--- a/dh_install
+++ b/dh_install
@@ -170,7 +170,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if (! defined $dest) {
# Guess at destination directory.
$dest=$src;
- $dest=~s/^(.*\/)?(\Q$srcdir\E|debian\/tmp)\///;
+ $dest=~s/^(.*\/)?\Q$srcdir\E\/// ||
+ $dest=~s/^(.*\/)?debian\/tmp\///;
$dest=dirname("/".$dest);
$tmpdest=1;
}