| author | Frank Lichtenheld <djpig@debian.org> | |
| Thu, 19 Jun 2008 00:16:27 +0000 (00:16 +0000) | ||
| committer | Frank Lichtenheld <djpig@debian.org> | |
| Thu, 19 Jun 2008 00:16:27 +0000 (00:16 +0000) |
+ [FL] Mark the tag pages with the correct code.
| debian/changelog | patch | blob | history | |
| reporting/html_reports | patch | blob | history |
diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
* lib/Lintian/Collect/Binary.pm:
+ [FL] Add support for file-info file.
+ * reporting/html_reports:
+ + [FL] Mark the tag pages with the correct code.
* reporting/templates/tag.tmpl:
+ [FL] Mark overridden tags.
diff --git a/reporting/html_reports b/reporting/html_reports
--- a/reporting/html_reports
+++ b/reporting/html_reports
} else {
$description = " <p>Can't find description of tag $tag.</p>";
}
+ my $code = 'O';
+ foreach (@{$by_tag{$tag}}) {
+ if ($_->{code} ne 'O') {
+ $code = $_->{code};
+ last;
+ }
+ }
my %data = (
description => $description,
tag => html_quote ($tag),
- code => $by_tag{$tag}[0]->{code},
+ code => $code,
tags => $by_tag{$tag},
);
output_template ("tags/$tag.html", $templates{tag}, \%data);
