]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installchangelogs
Fix typo in French translation, about debian/package.README.Debian files.
[debhelper.git] / dh_installchangelogs
index fc0b91d7384b180e1a6ed2f6903fd70beeb3d048..7042c5f9b742d270e7b13f67b123aaf84c1e4bb0 100755 (executable)
@@ -69,7 +69,7 @@ if (! defined $upstream) {
        if (! isnative($dh{MAINPACKAGE}) && !compat(6)) {
                my @files=sort glob("*");
                foreach my $name (qw{changelog changes}) {
-                       my @matches=grep { lc $_ eq $name } @files;
+                       my @matches=grep { lc $_ eq $name && -s $_ } @files;
                        if (@matches) {
                                $upstream=shift @matches;
                                last;