github.com/quay/claircore@v1.5.28/pkg/ovalutil/arch.go (about) 1 package ovalutil 2 3 import "github.com/quay/goval-parser/oval" 4 5 // ArchMatch checks if given package arch match with requited arch based on operator 6 func ArchMatch(pkgArch string, requiredPkgArch string, operation oval.Operation) bool { 7 if requiredPkgArch == "" { 8 return true 9 } 10 if pkgArch == "" { 11 return false 12 } 13 return Operation(pkgArch, requiredPkgArch, operation) 14 }