summaryrefslogtreecommitdiff
path: root/dh_install
diff options
context:
space:
mode:
Diffstat (limited to 'dh_install')
-rwxr-xr-xdh_install6
1 files changed, 6 insertions, 0 deletions
diff --git a/dh_install b/dh_install
index c37b9d3..5dff462 100755
--- a/dh_install
+++ b/dh_install
@@ -127,6 +127,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
foreach my $set (@install) {
my $dest;
+ my $tmpdest=0;
if (! defined $dh{AUTODEST} && @$set > 1) {
$dest=pop @$set;
@@ -144,6 +145,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
$dest=~s/^(.*\/)?\Q$strip\E//;
$dest=dirname($dest);
+ $tmpdest=1;
}
# Make sure the destination directory exists.
@@ -174,6 +176,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
else {
doit("cp", "-a", $src, "$tmp/$dest/");
}
+
+ if ($tmpdest) {
+ $dest=undef;
+ }
}
}
}