[SCM] Debian package checker branch, master, updated. 1.24.4-117-g99615b2
The following commit has been merged in the master branch:
commit 99615b21f0923c6638d2792d4b2b6d355d7b64c3
Author: Adam D. Barratt <adam@adam-barratt.org.uk>
Date: Sat Sep 13 10:48:57 2008 +0100
Ensure that the schedule hash contains arch when processing lab package lists
When processing package lists from the laboratory (which don't contain an
explicit architecture field), derive the architecture from the filename and
add that to the hash.
diff --git a/debian/changelog b/debian/changelog
index c596881..3566e72 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -126,6 +126,9 @@ lintian (2.0.0~rc1) experimental; urgency=low
includes the experimental flag info.
* lib/Lintian/Schedule.pm:
+ [FL] Factor out some scheduling code.
+ + [ADB] Ensure that the schedule hash contains the package's
+ architecture when processing package lists from the laboratory
+ (which don't contain an explicit architecture field).
* lib/Lintian/Data.pm:
+ [FL] Extend Lintian::Data to handle key/value pairs. Patch by
Niko Tyni.
diff --git a/lib/Lintian/Schedule.pm b/lib/Lintian/Schedule.pm
index 3c36363..a0d2dc6 100644
--- a/lib/Lintian/Schedule.pm
+++ b/lib/Lintian/Schedule.pm
@@ -47,6 +47,12 @@ sub add_file {
} else {
($pkg, $ver, $arch) =
@pkg_info{qw(package version architecture)};
+
+ if (!defined $arch) {
+ $arch = $file;
+ $arch =~ s/\.u?deb$//;
+ $arch =~ s/.*_//;
+ }
}
my $s = "$type $pkg $ver $arch $file";
--
Debian package checker
Reply to: