summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2012-05-11 13:45:51 -0400
committerJosh Boyer <jwboyer@redhat.com>2012-05-11 13:45:51 -0400
commit303e1c5761a1f411e48b573f24b4f75c45c2d06e (patch)
tree607da2134fe5e6e9d01ab1b984d31ba4a6dd2bf3
parent7849bf4fafc465250a788484b9c5da8713fbc116 (diff)
downloadkoji-bisect-master.zip
koji-bisect-master.tar.gz
koji-bisect-master.tar.xz
Don't login twiceHEADmaster
Make sure our session isn't already logged in. For some reason, the koji/ssl code really doesn't like it if you try and login when you are already logged in.
-rwxr-xr-xkoji-bisect.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/koji-bisect.py b/koji-bisect.py
index 47ded4e..a43af26 100755
--- a/koji-bisect.py
+++ b/koji-bisect.py
@@ -129,7 +129,10 @@ def activate_session(session):
# This is copied almost directly from koji. Sigh again.
def download_build(session, build, arch):
- activate_session(session)
+
+ if not session.logged_in:
+ activate_session(session)
+
info = session.getBuild(build)
if info is None: