diff options
author | Josh Boyer <jwboyer@redhat.com> | 2012-05-11 13:45:51 -0400 |
---|---|---|
committer | Josh Boyer <jwboyer@redhat.com> | 2012-05-11 13:45:51 -0400 |
commit | 303e1c5761a1f411e48b573f24b4f75c45c2d06e (patch) | |
tree | 607da2134fe5e6e9d01ab1b984d31ba4a6dd2bf3 /koji-bisect.py | |
parent | 7849bf4fafc465250a788484b9c5da8713fbc116 (diff) | |
download | koji-bisect-master.tar.gz koji-bisect-master.tar.xz koji-bisect-master.zip |
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.
Diffstat (limited to 'koji-bisect.py')
-rwxr-xr-x | koji-bisect.py | 5 |
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: |