if 'projects' in info:
saved_info['projects'] = list(set(projects + info['projects']))
if 'images' in info:
- # remove the old one if already exist
- for image in images:
- if info['images'][0]['name'] == image['name']:
- images.remove(image)
+ if info['images']:
+ # remove the old one if already exist
+ for image in images:
+ if info['images'][0]['name'] == image['name']:
+ images.remove(image)
- saved_info['images'] = images + info['images']
+ saved_info['images'] = images + info['images']
+ else:
+ # reset 'images'
+ saved_info['images'] = info['images']
self.set_description(json.dumps(saved_info), prj, pkg)
def get_info(self, prj, pkg=None):
return 0
make_repo(project, repo, backenddb, base_url, base_path, live_repo_base)
+ # reset 'images' meta info
+ build.update_info({'images': []}, project)
elif action == 'cleanup':
# request(SR) end of life, this founction should be called to
# delete the prerelease project "
info = {'projects': [git_project],
'obs_target_prj': obs_target_prj,
'git_tag': git_tag,
- 'git_commit': git_revision}
+ 'git_commit': git_revision,
+ 'images': []}
if submitter:
info['submitter'] = submitter.replace('<', '<').replace('>', '>')