system/arch: Fix ppc64le arch mapping
The previous code here wasn't right for ppc64.
While we're here turn consolidate ppc64le+s390x into
"list of arches that don't need mapping".
@@ -27,10 +27,8 @@ func RpmArch() string {
return "x86_64"
case "arm64":
return "aarch64"
- case "ppc64":
- return "ppc64le"
- case "s390x":
- return "s390x"
+ case "ppc64le", "s390x":
+ return goarch
default:
panic(fmt.Sprintf("RpmArch: No mapping defined for GOARCH %s", goarch))
}
