Fix tar: invalid magic error when running add_version

This commit is contained in:
gyf9835 2024-11-24 12:37:53 +08:00 committed by GitHub
parent abcdfbcd4e
commit f5b71e6a58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,6 +49,7 @@ class Command(BaseCommand):
with tempfile.NamedTemporaryFile("wb") as f:
f.write(response.content)
f.flush()
plugin_final_target = Path(tempdir) / plugin
with tempfile.TemporaryDirectory() as extraction_tmp: