From a17f3857490ec714ada6d058e04e825d310886af Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sun, 16 Jun 2019 19:53:18 +1000 Subject: [PATCH] chore: add debug info --- cmd/linux.go | 4 ++++ cmd/system.go | 2 +- cmd/wails/0_setup.go | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/linux.go b/cmd/linux.go index 781c3429..09f1f7b1 100644 --- a/cmd/linux.go +++ b/cmd/linux.go @@ -58,6 +58,8 @@ func GetLinuxDistroInfo() *DistroInfo { result.Distribution = Ubuntu case "Arch", "ManjaroLinux": result.Distribution = Arch + default: + result.Distribution = Unknown } case "Description": result.Description = value @@ -87,6 +89,8 @@ func GetLinuxDistroInfo() *DistroInfo { result.Distribution = RedHat case "Arch Linux": result.Distribution = Arch + default: + result.Distribution = Unknown } } return result diff --git a/cmd/system.go b/cmd/system.go index af28058f..53107da3 100644 --- a/cmd/system.go +++ b/cmd/system.go @@ -295,7 +295,6 @@ func CheckDependencies(logger *Logger) (bool, error) { logger.Green("Library '%s' installed.", library.Name) } case RedHat: - installed, err := RpmInstalled(library.Name) if err != nil { return false, err @@ -307,6 +306,7 @@ func CheckDependencies(logger *Logger) (bool, error) { logger.Green("Library '%s' installed.", library.Name) } default: + fmt.Printf("here 1. DistroInfo = %+v\n", distroInfo) return false, fmt.Errorf("unable to check libraries on distribution '%s'. Please ensure that the '%s' equivalent is installed", distroInfo.DistributorID, library.Name) } } diff --git a/cmd/wails/0_setup.go b/cmd/wails/0_setup.go index 0149f6cd..83eaf69d 100644 --- a/cmd/wails/0_setup.go +++ b/cmd/wails/0_setup.go @@ -108,6 +108,7 @@ func checkLibraries() (errors bool, err error) { logger.Green("Library '%s' installed.", library.Name) } default: + fmt.Printf("here 2. DistroInfo = %+v\n", distroInfo) return false, fmt.Errorf("unable to check libraries on distribution '%s'. Please ensure that the '%s' equivalent is installed", distroInfo.DistributorID, library.Name) } }