ci: fix broken check_changed_versions

The keep_dir option was added but not used, and the "APKBUILD" suffix
was also forgotten in the commit that changed the script last.

Fixes 5d8cf85911

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9373>
This commit is contained in:
Pablo Correa Gómez
2026-08-12 10:41:30 +02:00
parent d035338047
commit 14b13a20d1
+4 -2
View File
@@ -26,7 +26,9 @@ def get_package_contents(package, revision, check=True):
stderr = subprocess.DEVNULL
# Run something like "git show upstream/main:main/hello-world/APKBUILD"
apkbuild_content = common.run_git(["show", revision + ":" + package], check, stderr)
apkbuild_content = common.run_git(
["show", revision + ":" + package + "/APKBUILD"], check, stderr
)
if not apkbuild_content:
return None
@@ -178,7 +180,7 @@ def check_versions(packages):
if __name__ == "__main__":
# Get and print modified packages
packages = common.get_changed_packages()
packages = common.get_changed_packages(keep_dir=True)
if len(packages) == 0:
print("no aports changed in this branch")
sys.exit(0)