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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user