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
This commit is contained in:
Arnav Singh 2024-04-23 10:43:03 -07:00
parent 478a4261ca
commit deb676fba2
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A

View file

@ -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