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

[SCM] Debian package checker branch, master, updated. 2.5.4-44-g2f004c3



The following commit has been merged in the master branch:
commit 2f004c35694ac6447b3569a23ec1e621504338f2
Author: Evan Broder <evan@ebroder.net>
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 <niels@thykier.net>

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


Reply to: