Skip to content
Snippets Groups Projects
Commit 605d98fa authored by Haibo Huang's avatar Haibo Huang Committed by android-build-merger
Browse files

[Updater] Workaround python zipfile permission issue (again) am: bb3a456a

am: fb8168af

Change-Id: I2a7754b4a9a75b72c042782674995e79aed4cd6b
parents b0daf222 fb8168af
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,8 @@ class ZipFileWithPermission(zipfile.ZipFile): ...@@ -26,8 +26,8 @@ class ZipFileWithPermission(zipfile.ZipFile):
See https://bugs.python.org/issue15795 See https://bugs.python.org/issue15795
""" """
def extract(self, member, path=None, pwd=None): def _extract_member(self, member, targetpath, pwd):
ret_val = super().extract(member, path, pwd) ret_val = super()._extract_member(member, targetpath, pwd)
if not isinstance(member, zipfile.ZipInfo): if not isinstance(member, zipfile.ZipInfo):
member = self.getinfo(member) member = self.getinfo(member)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment