The following commit has been merged in the master branch:
commit 2f004c35694ac6447b3569a23ec1e621504338f2
Author: Evan Broder <[email protected]>
Date:   Sat Dec 10 10:11:21 2011 +0100

    Always use the effective severity in a tag's long-form description
    
    Acked-by: Niels Thykier <[email protected]>

diff --git a/debian/changelog b/debian/changelog
index 8ecf10d..2e03048 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -101,6 +101,9 @@ lintian (2.5.5) UNRELEASED; urgency=low
   * lib/Lintian/Processable/Package.pm:
     + [NT] Use part of the file name as package name if the mandatory
       "Package" or "Source" fields are missing rather than choking.
+  * lib/Lintian/Tag/Info.pm:
+    + [NT] Accepted patch from Evan Broder to always output effective
+      severity in tag descriptions.
 
   * reporting/harness:
     + [NT] Removed useless "TODO" message from the log output.
diff --git a/lib/Lintian/Tag/Info.pm b/lib/Lintian/Tag/Info.pm
index ff2b269..5f871c7 100644
--- a/lib/Lintian/Tag/Info.pm
+++ b/lib/Lintian/Tag/Info.pm
@@ -283,9 +283,9 @@ sub description {
     if ($self->{ref}) {
         push(@text, '', _format_reference($self->{ref}));
     }
-    if ($self->{severity} and $self->{certainty}) {
-        my $severity = $self->{severity};
-        my $certainty = $self->{certainty};
+    if ($self->severity and $self->certainty) {
+        my $severity = $self->severity;
+        my $certainty = $self->certainty;
         push(@text, '', "Severity: $severity, Certainty: $certainty");
     }
     if ($self->{script} and $self->{'script-type'}){

-- 
Debian package checker


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to