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

[Updater] Workaround python zipfile permission issue (again)

am: bb3a456a

Change-Id: Ib81a695907cea16c5d935970cd40c2ee22a8d1d4
parents a04033f4 bb3a456a
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