cli: wait-repo: wait for a current repo by default

The pre-1.35 behavior was to wait for a fresh regen.
This commit is contained in:
Mike McLean 2024-10-11 12:18:43 -04:00
parent 57040f7313
commit a9f92c5039
2 changed files with 9 additions and 3 deletions

View file

@ -7360,8 +7360,14 @@ def anon_handle_wait_repo(options, session, args):
error('' if suboptions.quiet else msg)
return
if builds:
# we're waiting for a repo with these builds, not necessarily a current one
min_event = None
else:
# wait for a current repo
min_event = "last"
watcher = _get_watcher(options, suboptions, session, tag['id'], nvrs=suboptions.builds,
min_event=None)
min_event=min_event)
try:
repoinfo = watcher.waitrepo(anon=anon)