Fix for uploading toolshed repository via hg.

This commit is contained in:
Daniel Blankenberg
2013-05-21 10:39:47 -04:00
parent 27fbf0afc3
commit 7f61cabe0d
@@ -74,7 +74,7 @@ class UploadController( BaseUIController ):
fd, uploaded_file_name = tempfile.mkstemp()
uploaded_file = open( uploaded_file_name, 'wb' )
while 1:
chunk = stream.read( CHUNK_SIZE )
chunk = stream.read( util.CHUNK_SIZE )
if not chunk:
break
uploaded_file.write( chunk )