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,10 +192,12 @@ func main() {
}
// 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") {
if preMap.DisplayData.Architecture != "noarch" {
fmt.Println(color.RedString("Package architecture not supported: " + preMap.DisplayData.Architecture))
os.Exit(1)
}
}
preMap.DisplayData.IsDependency = false