From 471f81b7f2b48670d4c2972253a93a68eb213afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Wed, 25 Feb 2009 01:29:58 +0000 Subject: [PATCH] - enable cookies to speed up the auth process - I don't know why it was disabled at all but it was probably due to #378421 ("http cookie errors with osc") but this is already resolved - this should fix #477690 ("osc fetching binaries really slow") --- osc/core.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/osc/core.py b/osc/core.py index ef509797..f70aff89 100755 --- a/osc/core.py +++ b/osc/core.py @@ -1476,13 +1476,8 @@ def http_request(method, url, headers={}, data=None, file=None): try: fd = urllib2.urlopen(req, data=data) - - except urllib2.HTTPError: - # make sure that cookies are saved nevertheless - if hasattr(conf.cookiejar, 'save'): - conf.cookiejar.save(ignore_discard=True) - # handle the exception elsewhere - raise + finally: + conf.cookiejar.save(ignore_discard=True) if filefd: filefd.close()