[SCM] Debian package checker branch, master, updated. 2.5.1-84-geb1c186
The following commit has been merged in the master branch:
commit e4961c1931d6237c93588c1f5119faf2f6521f3b
Author: Niels Thykier <niels@thykier.net>
Date: Tue Jul 12 11:05:25 2011 +0200
Removed sort_coll - no longer required
Since collections and checks are no longer interleaved (due to
group processing), sort_coll no longer provides the optimization
it used to.
diff --git a/frontend/lintian b/frontend/lintian
index 32cb8dc..790d4e4 100755
--- a/frontend/lintian
+++ b/frontend/lintian
@@ -1360,19 +1360,6 @@ sub load_checks{
}
-sub sort_coll {
- my ($ap, $bp);
- $ap = $map->getProp($a);
- $bp = $map->getProp($b);
- # override-file should be the first script to be run
- return -1 if ($ap->{'name'} eq 'override-file');
- return 1 if ($bp->{'name'} eq 'override-file');
- # sort collection scripts first
- return -1 if ($ap->{'type'} eq 'collection' && $bp->{'type'} ne 'collection');
- return 1 if ($bp->{'type'} eq 'collection' && $ap->{'type'} ne 'collection');
- return ($ap->{'name'} cmp $bp->{'name'});
-}
-
# Removes all collections with "Auto-Remove: yes"; takes a Lab::Package
# - depends on global variables %collection_info and $LINTIAN_ROOT
sub auto_clean_package {
@@ -1598,7 +1585,7 @@ sub process_group {
}
}
while ($map->pending) {
- foreach my $req (sort sort_coll $map->selectable) {
+ foreach my $req (sort $map->selectable) {
my $ri = $map->getProp($req);
my $check = $ri->{'name'};
my $ci = $check_info{$check};
--
Debian package checker
Reply to: