summaryrefslogtreecommitdiff
path: root/dh_installdocs
diff options
context:
space:
mode:
authorjoey <joey>2005-12-09 23:06:28 +0000
committerjoey <joey>2005-12-09 23:06:28 +0000
commitb31c9e79d3918b4879630e8fe97528d4452e201f (patch)
tree7787c6d640b36e3c013d372fca2029526c4e14bd /dh_installdocs
parent084815258f457f7a41934549b52a63ba34b759e1 (diff)
r1829: * dh_installdocs: Fix bug introduced by empty file skipping that prevented
errors for nonexistent files. Closes: #342729
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-xdh_installdocs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh_installdocs b/dh_installdocs
index eb7d126..52ad21d 100755
--- a/dh_installdocs
+++ b/dh_installdocs
@@ -127,7 +127,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
foreach my $doc (@docs) {
next if excludefile($doc);
- next if ! -s $doc && ! compat(4); # ignore empty BUGS, etc
+ next if -e $doc && ! -s $doc && ! compat(4); # ignore empty BUGS, etc
if (-d $doc && $exclude) {
my ($dir_basename) = basename($doc);
# Pity there's no cp --exclude ..