When some targets of OBS project are disabled, we should create
snapshot/prerelease repos.
Change-Id: I7f79f2a45a7a346362611a84e36a2eafde14332f
Fixes: #1908
# them not published
repo_status = build.get_repo_state(project)
for target_arch, status in repo_status.items():
- if status != 'published':
+ if status not in ['published', 'unpublished']:
print "The project: %s target: %s repo isn't published yet" \
% (project, target_arch)
# them not published
repo_status = build.get_repo_state(project)
for target_arch, status in repo_status.items():
- if status != 'published':
+ if status not in ['published', 'unpublished']:
print "Skipping prerelease repository creation as OBS "\
"repository: %s/%s/%s is't published yet." \
% (project, repo, target_arch)