diff options
Diffstat (limited to 'dh_installchangelogs')
-rwxr-xr-x | dh_installchangelogs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dh_installchangelogs b/dh_installchangelogs index fc0b91d7..7042c5f9 100755 --- a/dh_installchangelogs +++ b/dh_installchangelogs @@ -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; |