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

[SCM] Debian package checker branch, master, updated. 2.1.4-13-gfcfd5f7



The following commit has been merged in the master branch:
commit 315762460378f7d868c392e37dd898ffc893a82d
Author: Russ Allbery <rra@debian.org>
Date:   Sat Jan 10 21:11:30 2009 -0800

    Record statistics for certainty correctly
    
    * lib/Tags.pm:
      + [RA] Record statistics for certainty correctly.

diff --git a/debian/changelog b/debian/changelog
index 3588368..eb9f206 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -44,6 +44,7 @@ lintian (2.1.5) UNRELEASED; urgency=low
   * lib/Tags.pm:
     + [RA] Avoid Perl warnings if Severity or Certainty isn't set for a
       tag.  (Closes: #507278)
+    + [RA] Record statistics for certainty correctly.
 
   * man/lintian.1:
     + [RA] Document new deb-format check script.
diff --git a/lib/Tags.pm b/lib/Tags.pm
index 5970ba1..9d7fa49 100644
--- a/lib/Tags.pm
+++ b/lib/Tags.pm
@@ -249,12 +249,12 @@ sub record_stats {
     if ($tag_info->{overridden}{override}) {
 	$stats{$current}{overrides}{tags}{$tag_info->{overridden}{override}}++;
 	$stats{$current}{overrides}{severity}{$tag_info->{severity}}++;
-	$stats{$current}{overrides}{certainty}{$tag_info->{severity}}++;
+	$stats{$current}{overrides}{certainty}{$tag_info->{certainty}}++;
 	$stats{$current}{overrides}{types}{get_tag_code($tag_info)}++;
     } else {
 	$stats{$current}{tags}{$tag_info->{tag}}++;
 	$stats{$current}{severity}{$tag_info->{severity}}++;
-	$stats{$current}{certainty}{$tag_info->{severity}}++;
+	$stats{$current}{certainty}{$tag_info->{certainty}}++;
 	$stats{$current}{types}{get_tag_code($tag_info)}++;
     }
 }

-- 
Debian package checker


Reply to: