Subject: [PATCH 17/25] Don't describe .changes files as packages

From: Adam D. Barratt <[email-masked]>
Date: Wed, 6 Jan 2010 22:18:37 +0000

---
 lib/Lintian/Output.pm |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/lib/Lintian/Output.pm b/lib/Lintian/Output.pm
index 12038a4..4405db2 100644
--- a/lib/Lintian/Output.pm
+++ b/lib/Lintian/Output.pm
@@ -334,8 +334,13 @@ Lintian::Output uses v_msg() for output.  Called from Tags::select_pkg().
 sub print_start_pkg {
     my ($self, $pkg_info) = @_;
 
+    my $object = "package";
+    if ($pkg_info->{type} eq 'changes') {
+	$object = "file";
+    }
+
     $self->v_msg($self->delimiter,
-		 "Processing $pkg_info->{type} package $pkg_info->{package} (version $pkg_info->{version}) ...");
+		 "Processing $pkg_info->{type} $object $pkg_info->{package} (version $pkg_info->{version}) ...");
 }
 
 =item C<print_start_pkg($pkg_info)>
-- 
1.6.6