[debhelper-devel] [debhelper] 01/01: dh_missing: Note which tools have reported installed files

Niels Thykier nthykier at moszumanska.debian.org
Mon Apr 3 11:23:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch bug-415396-dh_missing
in repository debhelper.

commit 5addd271a1d4641f362964dfb8f8dc21dcc26d6d
Author: Niels Thykier <niels at thykier.net>
Date:   Mon Apr 3 11:22:11 2017 +0000

    dh_missing: Note which tools have reported installed files
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 dh_missing | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/dh_missing b/dh_missing
index 4f265b4..0041d51 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 (<debian/.debhelper/generated/*/installed-by-*>) {
 	local $/ = undef;
+	my $helper = $file =~ s at .*/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");
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list