| |
@@ -183,12 +183,12 @@
|
| |
session = get_session(args.profile)
|
| |
|
| |
old_build = session.getBuild(args.old_nvr)
|
| |
- if not old_build:
|
| |
+ if not old_build or old_build['state'] != koji.BUILD_STATES['COMPLETE']:
|
| |
help_missing_nvr(args.profile, session, args.old_nvr)
|
| |
raise SystemExit(1)
|
| |
|
| |
new_build = session.getBuild(args.new_nvr)
|
| |
- if not new_build:
|
| |
+ if not new_build or new_build['state'] != koji.BUILD_STATES['COMPLETE']:
|
| |
help_missing_nvr(args.profile, session, args.new_nvr)
|
| |
raise SystemExit(1)
|
| |
|
| |
If builds are not complete, show a friendly error message instead of requesting
metadata.json
later and failing.