[PATCH 17/20] Simplify some code
Mathieu Bridon
bochecha at fedoraproject.org
Wed Oct 29 12:57:15 UTC 2014
From: Mathieu Bridon <bochecha at daitauha.fr>
---
src/pyrpkg/cli.py | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/pyrpkg/cli.py b/src/pyrpkg/cli.py
index 569bb6a..65a1477 100755
--- a/src/pyrpkg/cli.py
+++ b/src/pyrpkg/cli.py
@@ -936,13 +936,14 @@ defined, packages will be built sequentially.""" %
task_id = self.cmd.build(self.args.skip_tag, self.args.scratch,
self.args.background, url, chain, arches,
sets, nvr_check)
- # Now that we have the task ID we need to deal with it.
+
+ # Log out of the koji session
+ self.cmd.kojisession.logout()
+
if self.args.nowait:
- # Log out of the koji session
- self.cmd.kojisession.logout()
return
- # pass info off to our koji task watcher
- self.cmd.kojisession.logout()
+
+ # Pass info off to our koji task watcher
return self._watch_koji_tasks(self.cmd.kojisession,
[task_id])
--
2.1.0
More information about the rel-eng
mailing list