Skip to content

Commit 61074ab

Browse files
authored
Use absolute paths in extract_dir
1 parent 0f53b7d commit 61074ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-cairo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def run_meson(meson_args, **kwargs):
133133

134134

135135
def apply_patch(patch_location: Path, cwd: Path):
136-
log.info(f"Applying patch: {patch_location} (cwd: {cwd})")
136+
log.info(f"Applying patch: {patch_location} (cwd: {cwd.absolute()})")
137137
patch_exe = DEFAULT_PATCH_EXE
138138
if DEFAULT_PATCH_EXE is None:
139139
if sys.platform != "win32":
@@ -260,7 +260,7 @@ def download_and_extract(
260260
if check_file_hash:
261261
check_sha256(tararchive, shasum)
262262

263-
extract_dir = Path(destdir, ".".join(tararchive.name.split(".")[:-2]))
263+
extract_dir = Path(destdir, ".".join(tararchive.name.split(".")[:-2])).absolute()
264264
if not extract_dir.exists() or not extract_dir.is_dir():
265265
log.info("Extracting archive")
266266
with tarfile.open(tararchive) as tar:

0 commit comments

Comments
 (0)