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:
parent
478a4261ca
commit
deb676fba2
|
@ -140,7 +140,7 @@ def check_versions(args, packages):
|
||||||
# checksums changed
|
# checksums changed
|
||||||
else:
|
else:
|
||||||
# Check that pkgrel was reset to 0
|
# 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."
|
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")
|
"See: https://wiki.postmarketos.org/wiki/Packaging#device_packages_and_other_packages_without_sources")
|
||||||
error = True
|
error = True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user