1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00

- 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")
This commit is contained in:
Marcus Hüwe 2009-02-25 01:29:58 +00:00
parent 404ecd7444
commit 471f81b7f2

View File

@ -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()