summaryrefslogtreecommitdiff
path: root/doUpgrade.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-07 08:00:05 -0500
committerJeff Carr <[email protected]>2025-10-07 08:00:05 -0500
commit85761945ce11bd2417b1889b210f3d582f1ec211 (patch)
treedf7f3451f7a6d65a6f1ad9119e2a5c8e47b07f59 /doUpgrade.go
parentcb63f983305808beb2c108b4bad25c2cbc8ca926 (diff)
early work on a debian library
Diffstat (limited to 'doUpgrade.go')
-rw-r--r--doUpgrade.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/doUpgrade.go b/doUpgrade.go
index edf0f81..d359af8 100644
--- a/doUpgrade.go
+++ b/doUpgrade.go
@@ -6,6 +6,7 @@ package main
import (
"fmt"
+ "go.wit.com/lib/debian"
"go.wit.com/lib/protobuf/zoopb"
"go.wit.com/log"
)
@@ -41,7 +42,7 @@ func doUpgrade() error {
if !argv.DryRun {
checkSuperuser()
- aptUpdate()
+ debian.AptUpdate()
}
fmt.Println("Installed Packages:")
@@ -55,7 +56,7 @@ func doUpgrade() error {
// force remove the packages. can be used if binaries change but versions didn't
for p := range me.machine.Wit.IterByName() {
if me.machine.IsInstalled(p.Name) {
- aptRemove(p.Name)
+ debian.AptRemove(p.Name)
}
}
}
@@ -67,10 +68,10 @@ func doUpgrade() error {
continue
}
if argv.Force {
- aptInstall(p.Name)
+ debian.AptInstall(p.Name)
continue
}
- if _, err := aptInstall(p.Name); err != nil {
+ if _, err := debian.AptInstall(p.Name); err != nil {
me.sh.BadExit("damn it", err)
}
}