Fixed arches not working correctly when they aren't noarch
This commit is contained in:
parent
f903fe44dd
commit
511379317a
2 changed files with 5 additions and 3 deletions
BIN
cmd/cmd
BIN
cmd/cmd
Binary file not shown.
|
@ -192,9 +192,11 @@ func main() {
|
|||
}
|
||||
|
||||
// Check if the architecture is supported.
|
||||
if preMap.DisplayData.Architecture != "noarch" || preMap.DisplayData.Architecture != string(uts.Machine[:]) {
|
||||
fmt.Println(color.RedString("Package architecture not supported: " + preMap.DisplayData.Architecture))
|
||||
os.Exit(1)
|
||||
if preMap.DisplayData.Architecture != strings.TrimRight(string(uts.Machine[:]), "\x00") {
|
||||
if preMap.DisplayData.Architecture != "noarch" {
|
||||
fmt.Println(color.RedString("Package architecture not supported: " + preMap.DisplayData.Architecture))
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
preMap.DisplayData.IsDependency = false
|
||||
|
|
Loading…
Reference in a new issue