mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-05-06 06:46:35 +08:00
Don't use extractall
This commit is contained in:
parent
86759ad241
commit
c04ad6660d
@ -92,4 +92,7 @@ with zipfile.ZipFile(zip_path) as zip:
|
|||||||
stat = Path(zip_path).stat()
|
stat = Path(zip_path).stat()
|
||||||
print(f"stat {zip_path}: {stat}", flush=True)
|
print(f"stat {zip_path}: {stat}", flush=True)
|
||||||
print(f"unzipping from {zip_path}", flush=True)
|
print(f"unzipping from {zip_path}", flush=True)
|
||||||
zip.extractall(archdir)
|
members = zip.namelist()
|
||||||
|
for member in members:
|
||||||
|
print(f"extracting {member}", flush=True)
|
||||||
|
zip.extract(member, archdir)
|
||||||
|
@ -28,8 +28,8 @@ import re
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
arch = sys.argv[1]
|
arch = sys.argv[1]
|
||||||
download_dir = Path.cwd().parent / \
|
arg2 = sys.argv[2]
|
||||||
"download" if sys.argv[2] == "" else Path(sys.argv[2])
|
download_dir = Path.cwd().parent / "download" if arg2 == "" else Path(arg2)
|
||||||
tempScript = sys.argv[3]
|
tempScript = sys.argv[3]
|
||||||
kernelVersion = sys.argv[4]
|
kernelVersion = sys.argv[4]
|
||||||
file_name = sys.argv[5]
|
file_name = sys.argv[5]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user