helpers.package.get: pass try_other_arches along

Let the get() function pass the try_other_arches parameter when calling
itself, so it does not get lost.
This commit is contained in:
Oliver Smith 2024-09-22 15:29:17 +02:00
parent a79e52feeb
commit 476976ba14
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -115,7 +115,7 @@ def get(pkgname, arch, replace_subpkgnames=False, must_exist=True, try_other_arc
if replace_subpkgnames:
depends_new = []
for depend in ret["depends"]:
depend_data = get(depend, arch, must_exist=False)
depend_data = get(depend, arch, must_exist=False, try_other_arches=try_other_arches)
if not depend_data:
logging.warning(f"WARNING: {pkgname}: failed to resolve" f" dependency '{depend}'")
# Can't replace potential subpkgname