[lintian] 01/01: html_reports: Insert state_data on all packages
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 451ad00694d92d3bc7d45047088b6b97c5a44f68
Author: Niels Thykier <niels@thykier.net>
Date: Wed Jan 15 20:14:30 2014 +0100
html_reports: Insert state_data on all packages
Signed-off-by: Niels Thykier <niels@thykier.net>
---
reporting/html_reports | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/reporting/html_reports b/reporting/html_reports
index 4e5c78c..f373353 100755
--- a/reporting/html_reports
+++ b/reporting/html_reports
@@ -218,7 +218,7 @@ while (<>) {
# there is any.
my ($source, $version, $area, $source_version, $maintainer, $uploaders);
my $pkg_data= $LAB->_get_lab_manifest_data($package, $type, $pver, $parch);
- my $state_data;
+ my $state_data = {};
if ($type eq 'source') {
$source = $package;
if (defined $pkg_data) {
@@ -301,9 +301,7 @@ while (<>) {
xref => maintainer_url($maintainer)
. "#${source}_${source_version}"
};
- if ($type eq 'source') {
- $info->{'state_data'} = $state_data // {};
- }
+ $info->{'state_data'} = $state_data;
$by_maint{$maintainer}{$source}{$source_version} ||= [];
push(@{ $by_maint{$maintainer}{$source}{$source_version} }, $info);
$by_tag{$tag} ||= [];
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: