Fixed arches not working correctly when they aren't noarch

This commit is contained in:
Arzumify 2024-09-16 19:43:45 +01:00
parent f903fe44dd
commit 511379317a
2 changed files with 5 additions and 3 deletions

BIN
cmd/cmd

Binary file not shown.

View file

@ -192,9 +192,11 @@ func main() {
} }
// Check if the architecture is supported. // Check if the architecture is supported.
if preMap.DisplayData.Architecture != "noarch" || preMap.DisplayData.Architecture != string(uts.Machine[:]) { if preMap.DisplayData.Architecture != strings.TrimRight(string(uts.Machine[:]), "\x00") {
fmt.Println(color.RedString("Package architecture not supported: " + preMap.DisplayData.Architecture)) if preMap.DisplayData.Architecture != "noarch" {
os.Exit(1) fmt.Println(color.RedString("Package architecture not supported: " + preMap.DisplayData.Architecture))
os.Exit(1)
}
} }
preMap.DisplayData.IsDependency = false preMap.DisplayData.IsDependency = false