diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-15 12:29:32 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-15 12:29:32 -0400 |
commit | d6daf9d873db059f0fab473b8f095ba4217ea154 (patch) | |
tree | 1f0d7df910e12b0b24adfd404f73047c9332b676 /dh_installchangelogs | |
parent | 5a4f5a4379f537f7a7a3efca3e251ad16f217e8e (diff) |
dh_installchangelogs: When searching for changelog in v7 mode, skip empty files. Closes: #490937
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; |