mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-21 15:05:28 +00:00
Support Python 3.12+
This commit is contained in:
parent
19f15f16f6
commit
eb400f19b1
5
build.py
5
build.py
@ -536,7 +536,10 @@ def setup_ndk(args):
|
||||
rm_rf(ondk_path)
|
||||
with urllib.request.urlopen(url) as response:
|
||||
with tarfile.open(mode="r|xz", fileobj=response) as tar:
|
||||
tar.extractall(ndk_root)
|
||||
if hasattr(tarfile, "data_filter"):
|
||||
tar.extractall(ndk_root, filter="tar")
|
||||
else:
|
||||
tar.extractall(ndk_root)
|
||||
|
||||
rm_rf(ndk_path)
|
||||
mv(ondk_path, ndk_path)
|
||||
|
Loading…
Reference in New Issue
Block a user