From feee94022d680aba4fe23543b468a82f835f9bb0 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Mon, 3 Apr 2017 11:22:11 +0000 Subject: dh_missing: Note which tools have reported installed files Signed-off-by: Niels Thykier --- dh_missing | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'dh_missing') diff --git a/dh_missing b/dh_missing index 4f265b42..0041d51b 100755 --- a/dh_missing +++ b/dh_missing @@ -69,7 +69,7 @@ init(options => { "fail-missing" => \$dh{FAIL_MISSING}, }); -my @installed; +my (@installed, %helpers); my $srcdir = '.'; $srcdir = $dh{SOURCEDIR} if defined $dh{SOURCEDIR}; @@ -100,6 +100,8 @@ if (! -d $srcdir) { for my $file () { local $/ = undef; + my $helper = $file =~ s@.*/installed-by-@@r; + $helpers{$helper} = 1; open(my $fh, '<', $file) or die "could not open $file: $!"; for my $line (split(/\n/, <$fh>)) { push(@installed, $line); @@ -135,6 +137,12 @@ find(sub { }, $srcdir); if (@missing) { warning "$_ exists in $srcdir but is not installed to anywhere" foreach @missing; + nonquiet_print("The following debhelper tools have reported what they installed"); + for my $helper (sort(keys(%helpers))) { + nonquiet_print(" * ${helper}"); + } + nonquiet_print("If the missing files are installed by another tool, please file a bug against it"); + nonquiet_print("For a short-term work-around: Add the files to debian/not-installed"); if ($dh{FAIL_MISSING}) { error("missing files, aborting"); } -- cgit v1.2.3