rename function
This commit is contained in:
parent
4e6aca0bd0
commit
4daea4dab9
2 changed files with 4 additions and 4 deletions
|
|
@ -45,7 +45,7 @@ from koji_cli.lib import (
|
|||
print_task_recurse,
|
||||
unique_path,
|
||||
warn,
|
||||
watch_builds,
|
||||
wait_repo,
|
||||
watch_logs,
|
||||
watch_tasks,
|
||||
truncate_string
|
||||
|
|
@ -7086,8 +7086,8 @@ def anon_handle_wait_repo(options, session, args):
|
|||
warn("nvr %s is not current in tag %s\n latest build in %s is %s" %
|
||||
(expected_nvr, tag, tag, present_nvr))
|
||||
|
||||
success, msg = watch_builds(session, tag_id, builds,
|
||||
poll_interval=options.poll_interval, timeout=suboptions.timeout)
|
||||
success, msg = wait_repo(session, tag_id, builds,
|
||||
poll_interval=options.poll_interval, timeout=suboptions.timeout)
|
||||
if success:
|
||||
if not suboptions.quiet:
|
||||
print(msg)
|
||||
|
|
|
|||
|
|
@ -831,7 +831,7 @@ def _list_tasks(options, session):
|
|||
return tasklist
|
||||
|
||||
|
||||
def watch_builds(session, tag_id, builds, poll_interval=5, timeout=120):
|
||||
def wait_repo(session, tag_id, builds, poll_interval=5, timeout=120):
|
||||
"""Watch for given builds to appear in given tag. If no builds are given,
|
||||
watch for new repo for given tag.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue