[SCM] Debian package checker branch, master, updated. 2.5.3-18-gb2083db
The following commit has been merged in the master branch:
commit b2083db39003356ab7502f9d50773015548a96fb
Author: Niels Thykier <niels@thykier.net>
Date: Sun Sep 18 17:38:49 2011 +0200
reporting/*: Recognise and display pedantic tags
Updated html_reports, lintian.css and a couple of templates to
recognise and display pedantic tags.
The colours/CSS-styles for pedantic tags are copy-wasted from the
info tags.
Signed-off-by: Niels Thykier <niels@thykier.net>
diff --git a/debian/changelog b/debian/changelog
index d5640b7..5a767e6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -24,6 +24,9 @@ lintian (2.5.4) UNRELEASED; urgency=low
if it contained a colon and there was no space before the vaue.
Thanks to Pino Toscano for reporting the issue.
+ * reporting/*:
+ + [NT] Recognise and display pedantic tags.
+
-- Niels Thykier <niels@thykier.net> Sat, 10 Sep 2011 13:44:01 +0200
lintian (2.5.3) unstable; urgency=low
diff --git a/reporting/html_reports b/reporting/html_reports
index f4c1715..46c1f64 100755
--- a/reporting/html_reports
+++ b/reporting/html_reports
@@ -209,7 +209,7 @@ my (%by_maint, %by_uploader, %by_tag);
my (%seen, %saw_maintainer);
while (<>) {
chomp;
- next unless m/^([EWIXO]): (\S+)(?: (\S+))?: (\S+)(?:\s+(.*))?/;
+ next unless m/^([EWIXOP]): (\S+)(?: (\S+))?: (\S+)(?:\s+(.*))?/;
my ($code, $package, $type, $tag, $extra) = ($1, $2, $3, $4, $5);
$type = 'binary' unless (defined $type);
$extra = '' unless (defined $extra);
@@ -221,7 +221,8 @@ while (<>) {
W => 'warnings',
I => 'info',
X => 'experimental',
- O => 'overridden'
+ O => 'overridden',
+ P => 'pedantic',
}->{$code};
$statistics{$key}++;
unless ($seen{"$package $type"}) {
@@ -532,7 +533,7 @@ if (-f $statistics_file) {
}
my %delta;
my @attrs = qw(maintainers source-packages binary-packages udeb-packages
- errors warnings info experimental overridden);
+ errors warnings info experimental pedantic overridden);
for my $attr (@attrs) {
my $old = $old_statistics->{$attr} || 0;
$statistics{$attr} ||= 0;
diff --git a/reporting/lintian.css b/reporting/lintian.css
index 552e7b7..08f29f5 100644
--- a/reporting/lintian.css
+++ b/reporting/lintian.css
@@ -316,6 +316,11 @@ span.type-O {
background-color: #DDD;
}
+span.type-P {
+ color: #111;
+ background-color: #C7EA3C;
+}
+
li.type-O {
color: #444;
}
@@ -346,6 +351,11 @@ blockquote.type-X {
border: 1px solid #DE66DE;
}
+blockquote.type-P {
+ background-color: #DFA;
+ border: 1px solid #C7EA3C;
+}
+
/*
* 5. Footer
diff --git a/reporting/templates/index.tmpl b/reporting/templates/index.tmpl
index 4581ee7..43ea7f4 100644
--- a/reporting/templates/index.tmpl
+++ b/reporting/templates/index.tmpl
@@ -67,6 +67,10 @@
<td>{$delta{info}}</td>
</tr>
<tr>
+ <td><span class="type-P">P</span> Pedantic tags:</td>
+ <td>{$delta{pedantic}}</td>
+ </tr>
+ <tr>
<td><span class="type-O">O</span> Overridden tags:</td>
<td>{$delta{overridden}}</td>
</tr>
diff --git a/reporting/templates/tags-severity.tmpl b/reporting/templates/tags-severity.tmpl
index a4d45fc..5e0e18c 100644
--- a/reporting/templates/tags-severity.tmpl
+++ b/reporting/templates/tags-severity.tmpl
@@ -9,7 +9,7 @@
{
my @tags = sort keys %tags;
- for my $severity (qw/serious important normal minor wishlist/) {
+ for my $severity (qw/serious important normal minor wishlist pedantic/) {
for my $certainty (qw/certain possible wild-guess/) {
my $heading = 0;
for my $tag (@tags) {
--
Debian package checker
Reply to: