commit 516e95327d0369d997ebcebc8488dab84c3c1ae6
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri May 30 12:00:52 2014 +0200
If the user is already logged in via the session pickle, move on
pkgdb2client.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/pkgdb2client.py b/pkgdb2client.py
index 63ab4df..668290f 100644
--- a/pkgdb2client.py
+++ b/pkgdb2client.py
@@ -226,6 +226,10 @@ class PkgDB(object):
if not motif.match(openid_url):
raise PkgDBException(
'Un-expected openid provider asked: %s' % openid_url)
+ elif 'logged in as' in response.text:
+ # User already logged in via its cookie file by default:
+ # ~/.cache/pkgdb-session.pickle
+ return
else:
data = {}
for resp in response.history:
Show replies by date