fixup! pmb.helpers.package.get: prefer right arch binary (!1776)
Check if ret_repo is None before trying to access it.
This commit is contained in:
parent
45c9eaa3ea
commit
fe731d7f5c
|
@ -74,7 +74,7 @@ def get(args, pkgname, arch, replace_subpkgnames=False):
|
||||||
# Save as result if there was no pmaport, or if the pmaport can not be
|
# Save as result if there was no pmaport, or if the pmaport can not be
|
||||||
# built for the given arch, but there is a binary package for that arch
|
# built for the given arch, but there is a binary package for that arch
|
||||||
# (e.g. temp/mesa can't be built for x86_64, but Alpine has it)
|
# (e.g. temp/mesa can't be built for x86_64, but Alpine has it)
|
||||||
if not ret or ret_repo["arch"] == arch:
|
if not ret or (ret_repo and ret_repo["arch"] == arch):
|
||||||
ret = ret_repo
|
ret = ret_repo
|
||||||
|
|
||||||
# Find in APKINDEX (other arches)
|
# Find in APKINDEX (other arches)
|
||||||
|
|
Loading…
Reference in New Issue