feat: add -Swp option
perf: tar.extractall wrapped in asyncio.to_thread
This commit is contained in:
@ -95,8 +95,8 @@ class Patcher:
|
||||
if not archive:
|
||||
raise RuntimeError("Cannot download patch repository")
|
||||
|
||||
with tarfile.open(archive) as tar:
|
||||
tar.extractall(self._patch_path)
|
||||
async with tarfile.open(archive) as tar:
|
||||
await asyncio.to_thread(tar.extractall, self._patch_path)
|
||||
|
||||
def override_patch_url(self, url) -> None:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user