[lintian] 02/03: Drop redundant fields in the harness state cache
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit b2ec694276f28b0f529e1655d09bfec94623ed1b
Author: Niels Thykier <niels@thykier.net>
Date: Tue Aug 2 19:56:23 2016 +0000
Drop redundant fields in the harness state cache
Signed-off-by: Niels Thykier <niels@thykier.net>
---
commands/reporting-sync-state.pm | 4 +++-
debian/changelog | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/commands/reporting-sync-state.pm b/commands/reporting-sync-state.pm
index 0bff2bf..798e73c 100644
--- a/commands/reporting-sync-state.pm
+++ b/commands/reporting-sync-state.pm
@@ -179,6 +179,7 @@ sub add_member_to_group {
$group_data->{'out-of-date'} = 1;
$member->{$DEFAULT_CHECKSUM} = $member_data->{$DEFAULT_CHECKSUM};
}
+ delete($member->{'sha1'});
return;
}
@@ -242,7 +243,8 @@ sub cleanup_group_state {
my $member_data = $members->{$member_id};
# Create "member_id to group_data" link
$state->{'members-to-groups'}{$member_id} = $group_data;
- remove_if_empty($member_data->{'mirror-metadata'}, 'area');
+ delete($member_data->{'mirror-metadata'}{'area'})
+ if exists($member_data->{'mirror-metadata'});
remove_if_empty($member_data, 'mirror-metadata');
}
}
diff --git a/debian/changelog b/debian/changelog
index 5985759..3431b17 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -58,6 +58,8 @@ lintian (2.5.46) UNRELEASED; urgency=medium
* commands/reporting-sync-state.pm:
+ [NT] Remove redundant "area" field from all binary packages in
the harness state cache.
+ + [NT] Drop existing instances of the "sha1" field from all packages
+ in the harness state cache.
* data/common/source-fields:
+ [NT] Apply patch from Edward Betts to add Testsuite-Triggers as
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: