[SCM] Debian package checker branch, lab-refactor, updated. 2.5.3-187-g7ff7252
The following commit has been merged in the lab-refactor branch:
commit 7ff72529f3aa5d53932ce93b380ee0c47af6b481
Author: Niels Thykier <niels@thykier.net>
Date: Wed Nov 2 11:12:18 2011 +0100
harness: Skip broken packages rather than failing
Signed-off-by: Niels Thykier <niels@thykier.net>
diff --git a/reporting/harness b/reporting/harness
index 1e04cec..a26c0da 100755
--- a/reporting/harness
+++ b/reporting/harness
@@ -156,9 +156,17 @@ unless ($opt_r) {
my $man = $diff->nlist;
my $me = $man->get (@$added);
my $file = $me->{'file'};
- my $proc = Lintian::Processable::Package->new ($type, $file);
- # We cannot use @$added here, since $pkg_arch must be present (even if undef)
- # when passing the $file parameter.
+ my $proc;
+ eval {
+ $proc = Lintian::Processable::Package->new ($type, $file);
+ };
+ unless ($proc) {
+ my $name = "$type:$pkg_name/$pkg_version";
+ $name .= "/$pkg_arch" if $pkg_arch;
+ Log ("Skipping $name due to errors ($@)");
+ next;
+ }
+
my $entry = $LAB->get_package ($proc);
if ($entry) {
my $ok = 0;
--
Debian package checker
Reply to: