parse: apkindex: don't set arch if None in providers() (MR 2252)

apkindex_files() handles arch=None just fine.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-10 01:13:39 +02:00 committed by Oliver Smith
parent 6db7e81a56
commit 62f3aa8cc4
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -284,7 +284,6 @@ def providers(package, arch: Optional[Arch]=None, must_exist=True, indexes=None)
block is the return value from parse_next_block() above.
"""
if not indexes:
arch = arch or Arch.native()
indexes = pmb.helpers.repo.apkindex_files(arch)
package = pmb.helpers.package.remove_operators(package)