It only retries _buildinfo after 401. In osc/fetch.py, if it gets a 401 (at
least on my system), it never retries.
But where do you "see" that it gets a 401? The pasted output doesn't indicate
http://bugzilla.novell.com/show_bug.cgi?id=590606
http://bugzilla.novell.com/show_bug.cgi?id=590606#c3
--- Comment #3 from Marcus Hüwe 2010-03-24 16:55:04 UTC ---
(In reply to comment #2)
that there was 401 response or a request at all.
For instance I get the following:
URLs to try for package 'libc6-dev':
file:///var/tmp/osbuild-packagecache/Debian:Etch/standard/i386/libc6-dev_2.3.6.ds1-13etch9+b1_i386.deb/
http://linux.linux-network/repositories/Debian:/Etch/standard/i386/libc6-dev...
http://0.0.0.0:3000/build/Debian:Etch/standard/i586/_repository/libc6-dev
Trying openSUSE Build Service server for libc6-dev (Debian:Etch), not found at
linux.linux-network.
send: 'GET /build/Debian%3AEtch/standard/i586/_repository/libc6-dev
HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: 0.0.0.0:3000\r\nConnection:
close\r\nUser-Agent: osbuild/0.1\r\n\r\n'
reply: 'HTTP/1.1 401 Unauthorized \r\n'
header: Connection: close
header: Content-Type: application/xml; charset=utf-8
header: X-Opensuse-Apiversion: 1.8
header: WWW-Authenticate: basic realm="API login"
header: Date: Wed, 24 Mar 2010 16:51:30 GMT
header: Server: WEBrick/1.3.1 (Ruby/1.8.7/2008-08-11)
header: X-Runtime: 2
header: Content-Length: 140
header: X-Opensuse-Errorcode: unknown
header: Cache-Control: no-cache
send: 'GET /build/Debian%3AEtch/standard/i586/_repository/libc6-dev
HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: 0.0.0.0:3000\r\nConnection:
close\r\nAuthorization: Basic <FOO>\r\nUser-Agent: osbuild/0.1\r\n\r\n'
reply: 'HTTP/1.1 200 OK \r\n'
header: Etag: "6a7a0aa76356e646127dbe82a7f147b2"
header: Connection: close
header: Content-Type: application/x-debian-package
header: Content-Transfer-Encoding: binary
header: X-Opensuse-Apiversion: 1.8
header: Date: Wed, 24 Mar 2010 16:51:30 GMT
header: Server: WEBrick/1.3.1 (Ruby/1.8.7/2008-08-11)
header: X-Runtime: 248
header: Content-Length: 2717858
header: Content-Disposition: inline
header: Cache-Control: private
(Debian:Etch) libc6-dev_2.3.6.ds1-13etch9+b1_i386.deb
100% |===============================================| 2.6 MB
00:00
The strange thing is that such a log is missing in your paste.
Also, note that _buildinfo (osc/core.py)
and the RPM/DEB fetching (osc/fetch.py) use completely different code paths.
Yes fetch.py uses urlgrabber to fetch the binaries and urlgrabber uses the
urllib2 openers.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.