[SCM] Debian package checker branch, master, updated. 2.5.1-4-g527f9c1
The following commit has been merged in the master branch:
commit 527f9c1b5e1a8d2ccac1156038049822cc27be6a
Author: Niels Thykier <niels@thykier.net>
Date: Thu Jun 23 16:47:52 2011 +0200
Ensure all dependency collections are loaded
diff --git a/debian/changelog b/debian/changelog
index 4ba40d9..c281bab 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,11 @@ lintian (2.5.2) UNRELEASED; urgency=low
+ [NT] Fixed typo; thanks to Nicolás Alvarez for the report
and patch. (Closes: #630925)
+ * frontend/lintian:
+ + [NT] Ensure that all dependency collections of a check are
+ loaded. Previously Lintian would only load direct
+ dependencies of a collection and assume that was enough.
+
-- Niels Thykier <niels@thykier.net> Sun, 19 Jun 2011 13:39:10 +0200
lintian (2.5.1) unstable; urgency=low
diff --git a/frontend/lintian b/frontend/lintian
index 8190ac3..982982b 100755
--- a/frontend/lintian
+++ b/frontend/lintian
@@ -1037,9 +1037,14 @@ if ($action eq 'unpack') {
$unpack_infos{$c} = 1;
}
} else {
- for my $c (keys %unpack_infos) {
+ my @needed = keys %unpack_infos;
+ my %added = ();
+ while ( my $c = pop @needed ) {
+ next if $added{$c};
+ $added{$c} = 1;
+ $unpack_infos{$c} = 1;
if (exists $collection_info{$c}{'needs-info'}) {
- map { $unpack_infos{$_} = 1; } @{$collection_info{$c}{'needs-info'}};
+ push @needed, @{$collection_info{$c}{'needs-info'}};
}
}
if ($unpack_info) {
--
Debian package checker
Reply to: