diff --git a/src/fuzzfetch/core.py b/src/fuzzfetch/core.py index 4a5bc78a..d2f88588 100644 --- a/src/fuzzfetch/core.py +++ b/src/fuzzfetch/core.py @@ -491,10 +491,10 @@ def extract_build(self, path: PathArg) -> None: targets_remaining.remove("gtest") for ext in ("zst", "gz"): with suppress(FetcherException): - self.extract_tar(self.artifact_url(f"gtest.tests.tar.{ext}")) + self.extract_tar(self.artifact_url(f"gtest.tests.tar.{ext}"), path) break else: - self.extract_zip(self.artifact_url("gtest.tests.zip")) + self.extract_zip(self.artifact_url("gtest.tests.zip"), path) if self._platform.system == "Windows": libxul = "xul.dll" elif self._platform.system == "Linux": @@ -547,10 +547,12 @@ def extract_build(self, path: PathArg) -> None: for target in targets_remaining: for ext in ("zst", "gz"): with suppress(FetcherException): - self.extract_tar(self.artifact_url(f"{target}.tests.tar.{ext}")) + self.extract_tar( + self.artifact_url(f"{target}.tests.tar.{ext}"), path + ) break else: - self.extract_zip(self.artifact_url(f"{target}.tests.zip")) + self.extract_zip(self.artifact_url(f"{target}.tests.zip"), path) # used by Pernosco to locate source ('\n' is expected) (path / "taskcluster-build-task").write_bytes(f"{self.task_id}\n".encode())