summaryrefslogtreecommitdiff
path: root/dh_install
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-11 13:48:10 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-11 13:48:10 -0500
commitfcc792210d4e089a41b1c14ccca9f0a8a7e0f2ec (patch)
tree258f14c00bd903dcc5345e73240d3fa32ac32803 /dh_install
parent7a31338038368a1ff845711c53d4b95395daa942 (diff)
* dh_installdocs/examples: Don't unnecessarily use the exclude code path.
* Avoid infiinite recursion when told to install a directory ending with "/." (slashdot effect?). Indeed, arbitrarily complex paths can be used now, although there's really no point in using them. Closes: #253234
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 624c88b0..47c00db2 100755
--- a/dh_install
+++ b/dh_install
@@ -9,6 +9,7 @@ dh_install - install files into package build directories
use strict;
use File::Find;
use Debian::Debhelper::Dh_Lib;
+use Cwd q{abs_path};
=head1 SYNOPSIS
@@ -175,7 +176,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
if (-d $src && $exclude) {
- my ($dir_basename) = basename($src);
+ my ($dir_basename) = basename(abs_path($src));
# Pity there's no cp --exclude ..
my $pwd=`pwd`;
chomp $pwd;