From bcf0875c1c130232fe9ddc5f295b2a406889e7ca Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Wed, 22 Jun 2022 14:17:17 +0200 Subject: [PATCH] fixed arch getting rejected if it contains anything other than x86_64 --- proto_package.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto_package.go b/proto_package.go index 6113f72..520d96c 100644 --- a/proto_package.go +++ b/proto_package.go @@ -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 }