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

[SCM] Debian package checker branch, master, updated. 2.5.11-174-g342a539



The following commit has been merged in the master branch:
commit 342a5398fe53a1b6e8b1de10e2e41cb530822f9f
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Feb 17 17:37:41 2013 +0100

    L::Profile: Get the severities from L::Tags
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/lib/Lintian/Profile.pm b/lib/Lintian/Profile.pm
index 01afd49..e55c7f9 100644
--- a/lib/Lintian/Profile.pm
+++ b/lib/Lintian/Profile.pm
@@ -29,6 +29,7 @@ use Carp qw(croak);
 use Dpkg::Vendor qw(get_current_vendor get_vendor_info);
 
 use Lintian::CheckScript;
+use Lintian::Tags;
 use Lintian::Util qw(parse_boolean read_dpkg_control);
 
 =head1 NAME
@@ -61,14 +62,7 @@ Lintian Profiles as well as loading the relevant Lintian checks.
 =cut
 
 # map of known valid severity allowed by profiles
-my %SEVERITIES = (
-    'pedantic'  => 1,
-    'wishlist'  => 1,
-    'minor'     => 1,
-    'normal'    => 1,
-    'important' => 1,
-    'serious'   => 1,
-    );
+my %SEVERITIES = map { $_ => 1} @Lintian::Tags::SEVERITIES;
 
 # List of fields in the main profile paragraph
 my %MAIN_FIELDS = (

-- 
Debian package checker


Reply to: