diff --git a/.ci/testcases/test_provides.py b/.ci/testcases/test_provides.py index 7953a6c21..00d9c2f07 100644 --- a/.ci/testcases/test_provides.py +++ b/.ci/testcases/test_provides.py @@ -34,7 +34,10 @@ def apkbuild_check_provides(path, apkbuild, version, pkgname, subpkgname=None): for provide in apkbuild["provides"]: # Having provides entries without version is valid if the # provider_priorty is also set (pma#1766) - if apkbuild["provider_priority"]: + # We use `is not None` here to allow priorities of 0, as + # otherwise Python would interpret 0 to mean False and the + # check would fail. + if apkbuild["provider_priority"] is not None: continue # Otherwise the version =$pkgver-r$pkgrel needs to be set. pmbootstrap # already replaces the variables, so we check against the inserted