Fixed small bug regarding installation reasons not always being read correctly
This commit is contained in:
parent
6e11f937a6
commit
2c7c4eeb73
@ -95,7 +95,7 @@ func GetInstallationReason(pkg, rootDir string) InstallationReason {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return Unknown
|
return Unknown
|
||||||
}
|
}
|
||||||
reason := string(b)
|
reason := strings.TrimSpace(string(b))
|
||||||
if reason == "manual" {
|
if reason == "manual" {
|
||||||
return Manual
|
return Manual
|
||||||
} else if reason == "dependency" {
|
} else if reason == "dependency" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user