From 1aeccc3f0723a2d9a4fd38752258b82d060cd663 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 12 Nov 2009 13:30:14 -0500 Subject: [PATCH] dh_installdocs: Warn if a doc-base file cannot be parsed to find a document id. Closes: #555677 --- debian/changelog | 2 ++ dh_installdocs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/debian/changelog b/debian/changelog index 012d703..4b756b8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -18,6 +18,8 @@ debhelper (7.4.4) UNRELEASED; urgency=low Closes: #548382 * Adjust code to add deprecation warning for compatability level 4. (Man page already said it was deprecated.) Closes: #555899 + * dh_installdocs: Warn if a doc-base file cannot be parsed to find a + document id. Closes: #555677 -- Joey Hess Wed, 28 Oct 2009 18:10:45 -0400 diff --git a/dh_installdocs b/dh_installdocs index d8ebe62..5f4abfd 100755 --- a/dh_installdocs +++ b/dh_installdocs @@ -280,6 +280,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) { last; } } + if (! exists $doc_ids{$fn}) { + warning("Could not parse $fn for doc-base Document id; skipping"); + } close IN; } closedir(DEB); -- 2.39.2