summaryrefslogtreecommitdiff
path: root/dh_install
diff options
context:
space:
mode:
authorjoey <joey>2002-12-12 22:13:19 +0000
committerjoey <joey>2002-12-12 22:13:19 +0000
commit8113612bc822e5d2cc3bbe900fa5d3c44250b057 (patch)
treec5173940b3443972f24adce10854cade1c3e5467 /dh_install
parentc77a36f731a5de1b01a65dc32ca19b22deddbde2 (diff)
r569: * Fix dh_install to install empty directories even if it is excluding some
files from installation.
Diffstat (limited to 'dh_install')
-rwxr-xr-xdh_install9
1 files changed, 6 insertions, 3 deletions
diff --git a/dh_install b/dh_install
index d75e0253..c6aea5b2 100755
--- a/dh_install
+++ b/dh_install
@@ -122,7 +122,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
# Support for -X flag.
my $exclude = '';
if ($dh{EXCLUDE_FIND}) {
- $exclude = '-and ! \( '.$dh{EXCLUDE_FIND}.' \)';
+ $exclude = '! \( '.$dh{EXCLUDE_FIND}.' \)';
}
foreach my $set (@install) {
@@ -166,7 +166,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
# Pity there's no cp --exclude ..
my $pwd=`pwd`;
chomp $pwd;
- complex_doit("cd $src/.. && find $dir_basename \\( -type f -or -type l \\) $exclude -exec cp --parents -dp {} $pwd/$tmp/$dest/ \\;");
+ complex_doit("cd $src/.. && find $dir_basename $exclude \\( -type f -or -type l \\) -exec cp --parents -dp {} $pwd/$tmp/$dest/ \\;");
+ # cp is annoying so I need a separate pass
+ # just for empty directories
+ complex_doit("cd $src/.. && find $dir_basename $exclude \\( -type d -and -empty \\) -exec cp --parents -a {} $pwd/$tmp/$dest/ \\;");
}
else {
doit("cp", "-a", $src, "$tmp/$dest/");
@@ -191,7 +194,7 @@ if ($dh{LIST_MISSING}) {
push @missing, $_ unless /$installed/ || excludefile($_);
}, $srcdir);
if (@missing) {
- warning "$_ not installed" foreach @missing;
+ warning "$_ exists in debian/tmp but not installed to anywhere" foreach @missing;
}
}