Subject: [PATCH 21/25] Display the correct package type in the bad package name warning

From: Adam D. Barratt <[email-masked]>
Date: Tue, 23 Mar 2010 18:50:18 +0000

Use %long_types instead of enumerating the package types directly,
both for readability and ensuring that .changes are included.
---
 lib/Lintian/Schedule.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/Lintian/Schedule.pm b/lib/Lintian/Schedule.pm
index ad82df3..4fcc127 100644
--- a/lib/Lintian/Schedule.pm
+++ b/lib/Lintian/Schedule.pm
@@ -60,7 +60,7 @@ sub add_file {
 
     if ( $pkg =~ m,/, ) {
 	warn(sprintf("warning: bad name for %2\$s package '%1\$s', skipping\n",
-	    $pkg, $type eq 'b' ? 'binary' : ($type eq 's' ? 'source': 'udeb')));
+	    $pkg, $long_types{$type}));
 	return 1;
     }
 
-- 
1.6.6