fixed arch getting rejected if it contains anything other than x86_64

This commit is contained in:
2022-06-22 14:17:17 +02:00
parent 2791ed44fa
commit bcf0875c1c

View File

@@ -573,7 +573,7 @@ func (p *ProtoPackage) isAvailable(h *alpm.Handle) bool {
return false
}
if p.Srcinfo != nil && (p.Srcinfo.Arch[0] != pkg.Architecture() || p.Srcinfo.Pkgbase != pkg.Base()) {
if p.Srcinfo != nil && (!Contains(p.Srcinfo.Arch, pkg.Architecture()) || p.Srcinfo.Pkgbase != pkg.Base()) {
log.Debugf("%s: arch (%s!=%s) or pkgbase (%s!=%s) does not match", p.Pkgbase, p.Srcinfo.Arch[0], pkg.Architecture(), pkg.Base(), p.Pkgbase)
return false
}