From deb676fba2a8bb53e81d68a64a9e8ed2e458b4f8 Mon Sep 17 00:00:00 2001 From: Arnav Singh Date: Tue, 23 Apr 2024 10:43:03 -0700 Subject: [PATCH] ci/check_changed_aports_ver: fix pkgrel check (MR 5061) The apkbuild parser returns `pkgrel` key as a `str`, not an `int`, so the `!= 0` check would always succeed even if the file set it to `0`. [ci:skip-build]: already built successfully in CI --- .ci/lib/check_changed_aports_versions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/lib/check_changed_aports_versions.py b/.ci/lib/check_changed_aports_versions.py index 1eed45129..4825bdb53 100755 --- a/.ci/lib/check_changed_aports_versions.py +++ b/.ci/lib/check_changed_aports_versions.py @@ -140,7 +140,7 @@ def check_versions(args, packages): # checksums changed else: # Check that pkgrel was reset to 0 - if head_parsed["pkgrel"] != 0: + if head_parsed["pkgrel"] != "0": print(f" - {package}: pkgrel should be 0 when package source checksums change." "See: https://wiki.postmarketos.org/wiki/Packaging#device_packages_and_other_packages_without_sources") error = True