]> git.donarmstrong.com Git - debhelper.git/commitdiff
r1829: * dh_installdocs: Fix bug introduced by empty file skipping that prevented
authorjoey <joey>
Fri, 9 Dec 2005 23:06:28 +0000 (23:06 +0000)
committerjoey <joey>
Fri, 9 Dec 2005 23:06:28 +0000 (23:06 +0000)
  errors for nonexistent files. Closes: #342729

debian/changelog
dh_installdocs

index 30e54ea4029bab9af061a0c49a77dd14084e72a2..18052a7169ae731d5ebddcc220920a272756f755 100644 (file)
@@ -1,3 +1,10 @@
+debhelper (5.0.10) unstable; urgency=low
+
+  * dh_installdocs: Fix bug introduced by empty file skipping that prevented
+    errors for nonexistent files. Closes: #342729
+
+ -- Joey Hess <joeyh@debian.org>  Fri,  9 Dec 2005 18:05:15 -0500
+
 debhelper (5.0.9) unstable; urgency=low
 
   * dh_installmodules: always run depmod, since if module-init-tools but not
index eb7d126c6121861a21bf8ac1d15095041f244005..52ad21d0b84d7583b3498bbe03067e51c1cfe548 100755 (executable)
@@ -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 ..