[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.0.0-rc2-7-gbf0a6a3



The following commit has been merged in the master branch:
commit bf0a6a3166ddf226f144af0b54466f1ac1c9b61e
Author: Frank Lichtenheld <djpig@debian.org>
Date:   Fri Sep 26 21:59:33 2008 +0200

    Lintian::Schedule::add_pkg_list(): Fix parsing of source package entries

diff --git a/debian/changelog b/debian/changelog
index f65b50a..efe6921 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,9 @@ lintian (2.0.0) UNRELEASED; urgency=low
   
   * frontend/lintian:
     + [FL] Fix config file parsing which I completly broke in ~rc1.
+  
+  * lib/Lintian/Schedule.pm:
+    + [FL] Fix parsing of source package entries in package lists.
 
   * man/lintian.1:
     + [FL] Remove a stray backslash.
diff --git a/lib/Lintian/Schedule.pm b/lib/Lintian/Schedule.pm
index 71d4a97..b4ed82c 100644
--- a/lib/Lintian/Schedule.pm
+++ b/lib/Lintian/Schedule.pm
@@ -90,7 +90,11 @@ sub add_pkg_list {
     while (<IN>) {
 	chomp;
 	my ($type, $pkg, $ver, $file) = split(/\s+/, $_, 4);
-	$self->add_file($type, $file, package => $pkg, version => $ver);
+	if ($type eq 's') {
+	    $self->add_file($type, $file, source => $pkg, version => $ver);
+	} else {
+	    $self->add_file($type, $file, package => $pkg, version => $ver);
+	}
     }
     close(IN);
 }

-- 
Debian package checker


Reply to: