# HG changeset patch # User Matt Fellows # Date 2014-11-27 15:28:59 # Node ID 0e82346ae7ae6575ea065cfd3530b84c96e85649 # Parent 0a45511d10035f7579d053e03902280a7b9c4d35 Fix for zip file downloads, not being valid zips (Issue #35) diff --git a/kallithea/controllers/files.py b/kallithea/controllers/files.py --- a/kallithea/controllers/files.py +++ b/kallithea/controllers/files.py @@ -569,6 +569,7 @@ class FilesController(BaseRepoController temp_stream = open(archive, 'wb') log.debug('Creating new temp archive in %s' % archive) cs.fill_archive(stream=temp_stream, kind=fileformat, subrepos=subrepos) + temp_stream.close() if not subrepos and archive_cache_enabled: #if we generated the archive and use cache rename that log.debug('Storing new archive in %s' % cached_archive_path)