#2347 cli: fix image-build-indirection --wait
Merged 2 years ago by mikem. Opened 2 years ago by tkopecek.
tkopecek/koji issue2046  into  master

file modified
+3 -15
@@ -538,8 +538,6 @@ 

          session.logout()

          return watch_tasks(session, [task_id], quiet=build_opts.quiet,

                             poll_interval=options.poll_interval)

-     else:

-         return

  

  

  def handle_chain_build(options, session, args):
@@ -1155,8 +1153,6 @@ 

          session.logout()

          return watch_tasks(session, [task_id], quiet=my_opts.quiet,

                             poll_interval=options.poll_interval)

-     else:

-         return

  

  

  def handle_import(goptions, session, args):
@@ -5904,11 +5900,9 @@ 

      if not options.quiet:

          print("Created task: %d" % 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], quiet=options.quiet)

-     # else:

-     #    return

+     if task_opts.wait or (task_opts.wait is None and not _running_in_bg()):

+         session.logout()

+         return watch_tasks(session, [task_id], quiet=options.quiet)

  

  

  def handle_image_build(options, session, args):
@@ -6105,8 +6099,6 @@ 

          session.logout()

          return watch_tasks(session, [task_id], quiet=options.quiet,

                             poll_interval=options.poll_interval)

-     else:

-         return

  

  

  def _build_image_oz(options, task_opts, session, args):
@@ -6176,8 +6168,6 @@ 

          session.logout()

          return watch_tasks(session, [task_id], quiet=options.quiet,

                             poll_interval=options.poll_interval)

-     else:

-         return

  

  

  def handle_win_build(options, session, args):
@@ -6253,8 +6243,6 @@ 

          session.logout()

          return watch_tasks(session, [task_id], quiet=build_opts.quiet,

                             poll_interval=options.poll_interval)

-     else:

-         return

  

  

  def handle_free_task(goptions, session, args):

@@ -28,7 +28,7 @@ 

      "indirection_template_url": "git://git.github.org/git/",

      "results_loc": "results",

      "scratch": None,

-     "wait": None,

+     "wait": False,

      "noprogress": None,

      "skip_tag": False,

  }

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 years ago

Metadata Update from @jcupova:
- Pull-request untagged with: testing-ready
- Pull-request tagged with: no_qe

2 years ago

Commit d3146d7 fixes this pull-request

Pull-Request has been merged by mikem

2 years ago