summaryrefslogtreecommitdiff
path: root/dh_installchangelogs
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-15 12:29:32 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-15 12:29:32 -0400
commitd6daf9d873db059f0fab473b8f095ba4217ea154 (patch)
tree1f0d7df910e12b0b24adfd404f73047c9332b676 /dh_installchangelogs
parent5a4f5a4379f537f7a7a3efca3e251ad16f217e8e (diff)
dh_installchangelogs: When searching for changelog in v7 mode, skip empty files. Closes: #490937
Diffstat (limited to 'dh_installchangelogs')
-rwxr-xr-xdh_installchangelogs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh_installchangelogs b/dh_installchangelogs
index fc0b91d..7042c5f 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;