find_providers: set higher provider_priority (MR 2301)

For packages selected by the user (see last commit), set the
provider_priority to 999999 instead of 999. The previous number seems
not high enough, we might set this in the APKBUILDs.
This commit is contained in:
Oliver Smith 2024-09-30 18:28:23 +02:00
parent 56a4329f4f
commit fd1331c2bc
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -268,7 +268,7 @@ def find_providers(provide, default):
# Strip provides version (=$pkgver-r$pkgrel)
if provides.split("=", 1)[0] == provide:
if subpkgname in default:
subpkg["provider_priority"] = 999
subpkg["provider_priority"] = 999999
providers[subpkgname] = subpkg
return sorted(providers.items(), reverse=True, key=lambda p: p[1].get("provider_priority", 0))