From 298fd445f9e3ae46a3ea0e39d6c102c551e29724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Tue, 10 Mar 2009 18:36:12 +0000 Subject: [PATCH] - fixed #466997 ("osc ci" fails uploading large files to Provo BuildService) --- osc/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/osc/core.py b/osc/core.py index d2049372..6ddc5c7c 100755 --- a/osc/core.py +++ b/osc/core.py @@ -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 ' \