Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r9944 - main/branches/2.1.2/pym
Date: Tue, 22 Apr 2008 18:30:58
Message-Id: E1JoNGZ-0001fs-Gy@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-04-22 18:30:54 +0000 (Tue, 22 Apr 2008)
3 New Revision: 9944
4
5 Modified:
6 main/branches/2.1.2/pym/getbinpkg.py
7 Log:
8 Make dir_get_metadata() retry if a httplib.ResponseNotReady exception
9 occurs. (trunk r9943)
10
11
12 Modified: main/branches/2.1.2/pym/getbinpkg.py
13 ===================================================================
14 --- main/branches/2.1.2/pym/getbinpkg.py 2008-04-22 18:29:51 UTC (rev 9943)
15 +++ main/branches/2.1.2/pym/getbinpkg.py 2008-04-22 18:30:54 UTC (rev 9944)
16 @@ -620,6 +620,14 @@
17 # connection before sending a valid response".
18 conn, protocol, address, params, headers = create_conn(
19 baseurl)
20 + except httplib.ResponseNotReady:
21 + # With some http servers this error is known to be thrown
22 + # from conn.getresponse() in make_http_request() when the
23 + # remote file does not have appropriate read permissions.
24 + # Maybe it's possible to recover from this exception in
25 + # cases though, so retry.
26 + conn, protocol, address, params, headers = create_conn(
27 + baseurl)
28
29 if myid and myid[0]:
30 metadata[baseurl]["data"][x] = make_metadata_dict(myid)
31
32 --
33 gentoo-commits@l.g.o mailing list