summaryrefslogtreecommitdiff
path: root/doAptUpgrade.go
diff options
context:
space:
mode:
Diffstat (limited to 'doAptUpgrade.go')
-rw-r--r--doAptUpgrade.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/doAptUpgrade.go b/doAptUpgrade.go
index f737e16..63ef6b1 100644
--- a/doAptUpgrade.go
+++ b/doAptUpgrade.go
@@ -22,11 +22,11 @@ func doAptUpgrade() {
}
fmt.Println("Installed Packages:")
- loop := me.forge.Machine.Wit.SortByName()
+ loop := me.machine.Wit.SortByName()
for loop.Scan() {
p := loop.Next()
// log.Info("apt install", name)
- if me.forge.Machine.IsInstalled(p.Name) {
+ if me.machine.IsInstalled(p.Name) {
cmd := []string{"apt", "install", p.Name}
if argv.DryRun {
log.Info("--dry-run", cmd)
@@ -43,7 +43,7 @@ func doAptList() {
log.DaemonMode(true)
defer log.DaemonMode(false)
fmt.Println("Installed Packages:")
- loop := me.forge.Machine.Wit.SortByName()
+ loop := me.machine.Wit.SortByName()
for loop.Scan() {
p := loop.Next()
var end string
@@ -51,12 +51,12 @@ func doAptList() {
if me.forge.Config.IsPrivate(p.Name) {
end += "(private) "
}
- if actualp := me.forge.Machine.FindVersion(p.Name, p.Version); actualp != nil {
+ if actualp := me.machine.FindVersion(p.Name, p.Version); actualp != nil {
// end += "(version match) "
} else {
end += "(version mismatch) " + actualp.Version + " " + version + " "
}
- if actualp := me.forge.Machine.FindInstalledByName(p.Name); actualp != nil {
+ if actualp := me.machine.FindInstalledByName(p.Name); actualp != nil {
if p.Version != actualp.Version {
end += "(installed " + actualp.Version + " vs " + p.Version + ") "
} else {