1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 01:46:13 +01:00

- don't fail if no "Content-Length" header exists

This commit is contained in:
Marcus Huewe 2010-11-30 19:10:06 +01:00
parent d3188831b9
commit 54a0d80abe

View File

@ -4515,8 +4515,8 @@ def streamfile(url, http_meth = http_GET, bufsize=8192, data=None, progress_obj=
progress_obj.end(read)
f.close()
if read != cl:
raise oscerr.OscIOError(None, ('Content-Length is not matching file size for %s: %i vs %i file size' % (url, cl, read)) )
if not cl is None and read != cl:
raise oscerr.OscIOError(None, 'Content-Length is not matching file size for %s: %i vs %i file size' % (url, cl, read))
def print_buildlog(apiurl, prj, package, repository, arch, offset = 0):