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
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue