--- a/configurationengine/source/cone/storage/filestorage.py Tue Oct 26 10:43:50 2010 +0100
+++ b/configurationengine/source/cone/storage/filestorage.py Sat Nov 06 16:59:14 2010 +0200
@@ -224,8 +224,9 @@
# when we can just write the file directly into the ZIP
if isinstance(storage, zipstorage.ZipStorage):
source_abspath = os.path.join(self.rootpath, path)
- logging.getLogger("cone").debug("Exporting directly from file to ZIP: %r -> %r" % (source_abspath, path))
- storage.zipfile.write(source_abspath, path)
+ logging.getLogger("cone").debug("Pre-caching: %r -> %r" % (source_abspath, path))
+ storage.cache[path] = source_abspath
+ storage.modified = True
else:
wres = storage.open_resource(path,'wb')
res = self.open_resource(path,"rb")