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

[SCM] Debian package checker branch, master, updated. 2.3.4-33-g4d7501e



The following commit has been merged in the master branch:
commit bdff54538fe573271564220ca458ebd90bd13759
Author: Adam D. Barratt <adam@adam-barratt.org.uk>
Date:   Tue Mar 23 18:50:18 2010 +0000

    Display the correct package type in the bad package name warning
    
    Use %long_types instead of enumerating the package types directly,
    both for readability and ensuring that .changes are included.

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;
     }
 

-- 
Debian package checker


Reply to: