Subject: [PATCH 05/25] Use the filename as the "package" name when scheduling .changes files

From: Adam D. Barratt <[email-masked]>
Date: Wed, 6 Jan 2010 09:41:58 +0000

---
 lib/Lintian/Schedule.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/Lintian/Schedule.pm b/lib/Lintian/Schedule.pm
index a5d1097..a61d1a6 100644
--- a/lib/Lintian/Schedule.pm
+++ b/lib/Lintian/Schedule.pm
@@ -45,6 +45,10 @@ sub add_file {
     if ($type eq 's') {
 	($pkg, $ver, $arch) =
 	    (@pkg_info{qw(source version)}, 'source');
+    } elsif ($type eq 'c') {
+	my ($filename) = $file =~ m,.*/([^/]+)\.changes$,;
+	($pkg, $ver, $arch) =
+	    ($filename, @pkg_info{qw(version architecture)});
     } else {
 	($pkg, $ver, $arch) =
 	    @pkg_info{qw(package version architecture)};
-- 
1.6.6