Added fetch status messages while installing or updating
This commit is contained in:
parent
fd6ddbfc41
commit
7a489af220
8
main.go
8
main.go
@ -18,7 +18,7 @@ import (
|
|||||||
/* A simple-to-use package manager */
|
/* A simple-to-use package manager */
|
||||||
/* ---------------------------------- */
|
/* ---------------------------------- */
|
||||||
|
|
||||||
var bpmVer = "0.4"
|
var bpmVer = "0.4.1"
|
||||||
|
|
||||||
var subcommand = "help"
|
var subcommand = "help"
|
||||||
var subcommandArgs []string
|
var subcommandArgs []string
|
||||||
@ -303,6 +303,7 @@ func resolveCommand() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Could not fetch package (%s). Error: %s\n", pkg, err)
|
log.Fatalf("Could not fetch package (%s). Error: %s\n", pkg, err)
|
||||||
}
|
}
|
||||||
|
fmt.Printf("Package (%s) was successfully fetched!\n", value.pkgInfo.Name)
|
||||||
value.bpmFile = fetchedPackage
|
value.bpmFile = fetchedPackage
|
||||||
pkgsToInstall.Set(pkg, value)
|
pkgsToInstall.Set(pkg, value)
|
||||||
}
|
}
|
||||||
@ -451,7 +452,7 @@ func resolveCommand() {
|
|||||||
}]()
|
}]()
|
||||||
fmt.Println("Fetching packages from available repositories...")
|
fmt.Println("Fetching packages from available repositories...")
|
||||||
for _, pkg := range toUpdate.Keys() {
|
for _, pkg := range toUpdate.Keys() {
|
||||||
isDependency, _ := toUpdate.Get(pkg)
|
value, _ := toUpdate.Get(pkg)
|
||||||
entry, repo, err := utils.GetRepositoryEntry(pkg)
|
entry, repo, err := utils.GetRepositoryEntry(pkg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Could not find package (%s) in any repository\n", pkg)
|
log.Fatalf("Could not find package (%s) in any repository\n", pkg)
|
||||||
@ -460,7 +461,8 @@ func resolveCommand() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Could not fetch package (%s). Error: %s\n", pkg, err)
|
log.Fatalf("Could not fetch package (%s). Error: %s\n", pkg, err)
|
||||||
}
|
}
|
||||||
pkgsToInstall.Set(fetchedPackage, isDependency)
|
fmt.Printf("Package (%s) was successfully fetched!\n", value.entry.Info.Name)
|
||||||
|
pkgsToInstall.Set(fetchedPackage, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Install fetched packages
|
// Install fetched packages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user