Remove the duplicated list of the manifest 14/178114/1
authorYonghee Han <onstudy@samsung.com>
Tue, 8 May 2018 06:51:14 +0000 (15:51 +0900)
committerYonghee Han <onstudy@samsung.com>
Tue, 8 May 2018 06:51:14 +0000 (15:51 +0900)
Fix the Too many argument list

Change-Id: Iee283ff95ce164586fc29626f52bb08f7ce244fa

job_create_snapshot.py

index 01fe5b1..86e71ef 100755 (executable)
@@ -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 = []