Package information will no longer show up if the -y flag is enabled

This commit is contained in:
CapCreeperGR 2024-07-12 16:22:27 +03:00
parent e445863dca
commit 23f9a13939

View File

@ -135,8 +135,10 @@ func resolveCommand() {
if err != nil { if err != nil {
log.Fatalf("Could not read package\nError: %s\n", err) log.Fatalf("Could not read package\nError: %s\n", err)
} }
if !yesAll {
fmt.Print("----------------\n" + bpm_utils.CreateInfoFile(*pkgInfo, true)) fmt.Print("----------------\n" + bpm_utils.CreateInfoFile(*pkgInfo, true))
fmt.Println("----------------") fmt.Println("----------------")
}
verb := "install" verb := "install"
if pkgInfo.Type == "source" { if pkgInfo.Type == "source" {
if _, err := os.Stat("/bin/fakeroot"); os.IsNotExist(err) { if _, err := os.Stat("/bin/fakeroot"); os.IsNotExist(err) {