# them not published
repo_status = build.get_repo_state(project)
for target_arch, status in repo_status.items():
- if status not in ['published', 'unpublished']:
- print "The project: %s target: %s repo isn't published yet" \
- % (project, target_arch)
+ if status not in ['published', 'unpublished', 'unknown']:
+ print "The project: %s target: %s repo is still under %s, " \
+ "skip now" % (project, target_arch, status)
return 0
# them not published
repo_status = build.get_repo_state(project)
for target_arch, status in repo_status.items():
- if status not in ['published', 'unpublished']:
+ if status not in ['published', 'unpublished', 'unknown']:
print "Skipping prerelease repository creation as OBS "\
- "repository: %s/%s/%s is't published yet." \
- % (project, repo, target_arch)
+ "repository: %s/%s/%s is still under %s, skip now." \
+ % (project, repo, target_arch, status)
return 0