mirror of
https://github.com/coreos/fedora-coreos-config.git
synced 2026-02-05 09:45:30 +01:00
ci/overrides: fail if we didn't fast-track/pin anything
If none of the detected binary packages are listed in the lockfiles, fail rather than performing a no-op rewrite of the override file and appearing to succeed.
This commit is contained in:
committed by
Benjamin Gilbert
parent
79a2fdb8ef
commit
481f0a1ecd
@@ -107,6 +107,8 @@ def do_fast_track(args):
|
||||
)
|
||||
if args.reason:
|
||||
overrides[n]['metadata']['reason'] = args.reason
|
||||
if not overrides:
|
||||
raise Exception('specified updates contain no binary packages listed in lockfiles')
|
||||
for lockfile_path in get_lockfiles():
|
||||
merge_overrides(lockfile_path, overrides)
|
||||
|
||||
@@ -125,6 +127,8 @@ def do_pin(args):
|
||||
reason=args.reason,
|
||||
)
|
||||
)
|
||||
if not overrides:
|
||||
raise Exception('specified source packages produce no binary packages listed in lockfiles')
|
||||
for lockfile_path in get_lockfiles():
|
||||
merge_overrides(lockfile_path, overrides)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user