1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-06 15:43:39 +02:00

- fixed #466997 ("osc ci" fails uploading large files to Provo BuildService)

This commit is contained in:
Marcus Hüwe
2009-03-10 18:36:12 +00:00
parent b88be07358
commit 298fd445f9

View File

@@ -1467,6 +1467,7 @@ def http_request(method, url, headers={}, data=None, file=None):
try:
data = mmap.mmap(filefd.fileno(), os.path.getsize(file),
mmap.MAP_SHARED, mmap.PROT_READ)
data = buffer(data)
except EnvironmentError, e:
if e.errno == 19:
sys.exit('\n\n%s\nThe file \'%s\' could not be memory mapped. It is ' \