Skip to content

Commit

Permalink
Revert "cbuild: temporarily add --root to apk version calls"
Browse files Browse the repository at this point in the history
This reverts commit d6b02e2.
  • Loading branch information
q66 committed Nov 23, 2024
1 parent d6b02e2 commit 9881856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cbuild/apk/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def check_version(*args):
if len(args) == 1 and not args[0][0].isdigit():
return False
v = subprocess.run(
[paths.apk(), "--root", paths.bldroot(), "version", "--quiet", "--check", *args],
[paths.apk(), "version", "--quiet", "--check", *args],
capture_output=True,
)
return v.returncode == 0
Expand All @@ -276,7 +276,7 @@ def compare_version(v1, v2, strict=True):
raise RuntimeError("invalid version")

v = subprocess.run(
[paths.apk(), "--root", paths.bldroot(), "version", "--quiet", "--test", v1, v2],
[paths.apk(), "version", "--quiet", "--test", v1, v2],
capture_output=True,
check=True,
).stdout.strip()
Expand Down

0 comments on commit 9881856

Please sign in to comment.