let add_to_package support the file renaming in the zip archive

with the committed change in 7384.
This commit is contained in:
Faik Uygur
2006-05-02 07:22:01 +00:00
parent 6798aa0150
commit 89469e7d2e
+2 -2
View File
@@ -98,9 +98,9 @@ class Package:
self.impl = archive.ArchiveZip(self.filepath, 'zip', mode)
def add_to_package(self, fn):
def add_to_package(self, fn, an=None):
"""Add a file or directory to package"""
self.impl.add_to_archive(fn)
self.impl.add_to_archive(fn, an)
def close(self):
"""Close the package archive"""