diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-06-30 13:04:11 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-06-30 13:04:11 -0400 |
commit | 220fc31652cf112b333c195cde759fe5f04d182f (patch) | |
tree | ece7075eb177a57aa3d9a0313048f3359da21691 /dh_install | |
parent | 9a867d7d344bc3c59a3326123f7323655c311d6c (diff) | |
parent | 9089acf8dcc683db171f1f5be12c9424cf89aa6f (diff) | |
download | debhelper-220fc31652cf112b333c195cde759fe5f04d182f.tar.gz |
Merge branch 'master' into buildsystems
Conflicts:
debian/changelog
Diffstat (limited to 'dh_install')
-rwxr-xr-x | dh_install | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -117,7 +117,7 @@ init(options => { my @installed; my $srcdir = '.'; -$srcdir = $dh{SOURCEDIR}."/" if defined $dh{SOURCEDIR}; +$srcdir = $dh{SOURCEDIR} if defined $dh{SOURCEDIR}; foreach my $package (@{$dh{DOPACKAGES}}) { my $tmp=tmpdir($package); @@ -151,7 +151,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { my @found = glob "$srcdir/$glob"; if (! compat(6)) { # Fall back to looking in debian/tmp. - if (! @found || ! -e $found[0]) { + if (! @found || ! (-e $found[0] || -l $found[0])) { @found = glob "debian/tmp/$glob"; } } @@ -170,11 +170,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { if (! defined $dest) { # Guess at destination directory. $dest=$src; - my $strip=$srcdir; - if ($strip eq '.') { - $strip = "debian/tmp"; - } - $dest=~s/^(.*\/)?\Q$strip\E//; + $dest=~s/^(.*\/)?(\Q$srcdir\E|debian\/tmp)\///; $dest=dirname($dest); $tmpdest=1; } |