forked from Mirror/pmbootstrap
pmb.helpers.apk_static: fix version check for apk3
ipdb> p version_bin '3.0.0_rc5_git20250613-r0' ipdb> p version '3.0.0_rc5_git20250613-r0' Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2635
This commit is contained in:
parent
7d36c604f1
commit
a8988872b6
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ def extract(version: str, apk_path: Path) -> None:
|
|||
os.chmod(temp_path, os.stat(temp_path).st_mode | stat.S_IEXEC)
|
||||
version_bin = pmb.helpers.run.user_output([temp_path, "--version"])
|
||||
version_bin = version_bin.split(" ")[1].split(",")[0]
|
||||
if not version.startswith(f"{version_bin}-r"):
|
||||
if not version.startswith(f"{version_bin}"):
|
||||
os.unlink(temp_path)
|
||||
raise RuntimeError(
|
||||
f"Downloaded apk-tools-static-{version}.apk,"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue