]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installchangelogs
dh_auto_install: Fix man page, was referring to dh_auto_clean.
[debhelper.git] / dh_installchangelogs
index 3d7be50d9fded33b1210dd32ff8d71672ec7788b..7042c5f9b742d270e7b13f67b123aaf84c1e4bb0 100755 (executable)
@@ -31,7 +31,7 @@ usr/share/doc/package/NEWS.Debian. debian/package.NEWS files can also be
 used.
 
 An upstream changelog file may be specified as an option. If none is
-specified, a few common filenames are tried. (In compatability level 7 and
+specified, a few common filenames are tried. (In compatibility level 7 and
 above.)
 
 If there is an upstream changelog file, it will be be installed as
@@ -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;