From: Yonghee Han Date: Tue, 8 May 2018 06:51:14 +0000 (+0900) Subject: Remove the duplicated list of the manifest X-Git-Tag: submit/trunk/20190927.012743~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F14%2F178114%2F1;p=services%2Fjenkins-scripts.git Remove the duplicated list of the manifest Fix the Too many argument list Change-Id: Iee283ff95ce164586fc29626f52bb08f7ce244fa --- diff --git a/job_create_snapshot.py b/job_create_snapshot.py index 01fe5b1..86e71ef 100755 --- a/job_create_snapshot.py +++ b/job_create_snapshot.py @@ -148,6 +148,7 @@ def make_repo(project, backenddb, base_path, live_repo_base): repos = {} imagedatas = {} duplicated_report = [] + manifesttemp = [] manifestdata = [] if buildmonitor_enabled: @@ -297,7 +298,8 @@ def make_repo(project, backenddb, base_path, live_repo_base): live_repo_path, repo['Architectures']) # Add Manifest data - manifestdata.extend(list(set([ (t.keys()[0],t[t.keys()[0]][0], t[t.keys()[0]][1]) for t in manifest_items]))) + manifesttemp.extend(list(set([ (t.keys()[0],t[t.keys()[0]][0], t[t.keys()[0]][1]) for t in manifest_items]))) + manifestdata = list(set(manifesttemp)) # Check duplicated items manifest_items_no_pkg_name = []