mirror of
https://github.com/EnumeratedDev/bpm.git
synced 2026-09-16 10:36:12 +00:00
BPM will no longer show a message if no packages have been installed when running bpm list -n or bpm list -l
This commit is contained in:
@@ -97,10 +97,6 @@ func resolveCommand() {
|
||||
log.Fatalf("Could not get installed packages\nError: %s", err.Error())
|
||||
return
|
||||
}
|
||||
if len(packages) == 0 {
|
||||
fmt.Println("No packages have been installed")
|
||||
return
|
||||
}
|
||||
if pkgListNumbers {
|
||||
fmt.Println(len(packages))
|
||||
} else if pkgListNames {
|
||||
@@ -108,6 +104,10 @@ func resolveCommand() {
|
||||
fmt.Println(pkg)
|
||||
}
|
||||
} else {
|
||||
if len(packages) == 0 {
|
||||
fmt.Println("No packages have been installed")
|
||||
return
|
||||
}
|
||||
for n, pkg := range packages {
|
||||
info := bpm_utils.GetPackageInfo(pkg, rootDir, false)
|
||||
if info == nil {
|
||||
|
||||
Reference in New Issue
Block a user