use yaml bool

This commit is contained in:
2021-11-21 19:35:29 +01:00
parent fe822b4765
commit 2ca1b37eab

View File

@@ -78,7 +78,7 @@ type Conf struct {
Build struct { Build struct {
Worker int Worker int
Makej int Makej int
Checks string Checks bool
} }
Logging struct { Logging struct {
Level string Level string
@@ -692,7 +692,7 @@ func setupMakepkg(march string) error {
makepkgStr := string(t) makepkgStr := string(t)
makepkgStr = strings.ReplaceAll(makepkgStr, "-mtune=generic", "") makepkgStr = strings.ReplaceAll(makepkgStr, "-mtune=generic", "")
if strings.ToLower(conf.Build.Checks) != "true" { if conf.Build.Checks {
makepkgStr = strings.ReplaceAll(makepkgStr, " check ", " !check ") makepkgStr = strings.ReplaceAll(makepkgStr, " check ", " !check ")
} }
makepkgStr = strings.ReplaceAll(makepkgStr, " color ", " !color ") makepkgStr = strings.ReplaceAll(makepkgStr, " color ", " !color ")