support the global -q option in spin-{livecd,appliance}
This commit is contained in:
parent
5824420959
commit
8aee589890
1 changed files with 7 additions and 6 deletions
13
cli/koji
13
cli/koji
|
|
@ -4305,13 +4305,14 @@ def _build_image(options, task_opts, session, args, img_type):
|
|||
task_id = session.buildImage(arch, target, ksfile, img_type,
|
||||
opts=hub_opts, priority=priority)
|
||||
|
||||
print "Created task:", task_id
|
||||
print "Task info: %s/taskinfo?taskID=%s" % (options.weburl, task_id)
|
||||
if not task_opts.wait and (_running_in_bg() or task_opts.wait is False):
|
||||
return
|
||||
else:
|
||||
if not options.quiet:
|
||||
print "Created task:", task_id
|
||||
print "Task info: %s/taskinfo?taskID=%s" % (options.weburl, task_id)
|
||||
if task_opts.wait or (task_opts.wait is None and not _running_in_bg()):
|
||||
session.logout()
|
||||
return watch_tasks(session,[task_id])
|
||||
return watch_tasks(session, [task_id], quiet=options.quiet)
|
||||
else:
|
||||
return
|
||||
|
||||
def handle_free_task(options, session, args):
|
||||
"[admin] Free a task"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue