debhelper (7.0.16) UNRELEASED; urgency=low
* dh: Avoid passing --with on to subcommands. Closes: #490886
+ * dh_installchangelogs: When searching for changelog in v7 mode, skip
+ empty files. Closes: #490937
-- Joey Hess <joeyh@debian.org> Mon, 14 Jul 2008 20:35:47 -0400
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;