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

[lintian] 01/01: c/r-sync-state: Remove old field when migrating



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch reporting-rewrite-config-and-archive-handling
in repository lintian.

commit 27386bac11f1f56ef6cb3801a38862b7266342c2
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Apr 29 16:02:53 2017 +0000

    c/r-sync-state: Remove old field when migrating
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 commands/reporting-sync-state.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/commands/reporting-sync-state.pm b/commands/reporting-sync-state.pm
index 142fbb3..593c5e9 100644
--- a/commands/reporting-sync-state.pm
+++ b/commands/reporting-sync-state.pm
@@ -149,6 +149,7 @@ sub upgrade_state_cache_if_needed {
                 if (not exists($group_data->{'mirror-metadata'}{'component'})){
                     $group_data->{'mirror-metadata'}{'component'}
                       = $group_data->{'mirror-metadata'}{'area'};
+                    delete($group_data->{'mirror-metadata'}{'area'});
                     $updated = 1;
                 }
             }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: