let add_to_package support the file renaming in the zip archive
with the committed change in 7384.
This commit is contained in:
+2
-2
@@ -98,9 +98,9 @@ class Package:
|
|||||||
|
|
||||||
self.impl = archive.ArchiveZip(self.filepath, 'zip', mode)
|
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"""
|
"""Add a file or directory to package"""
|
||||||
self.impl.add_to_archive(fn)
|
self.impl.add_to_archive(fn, an)
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
"""Close the package archive"""
|
"""Close the package archive"""
|
||||||
|
|||||||
Reference in New Issue
Block a user