Compare commits

...

1 Commits

Author SHA1 Message Date
Lea Anthony
a17f385749 chore: add debug info 2019-06-16 19:53:18 +10:00
3 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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)
}
}

View File

@@ -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)
}
}