summaryrefslogtreecommitdiff
path: root/upgrade.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 06:49:33 -0500
committerJeff Carr <[email protected]>2025-10-03 06:49:33 -0500
commit4574971b222384f3f0f1a5f41ce03ac7e495d682 (patch)
treeb1aba2cd3bb699cc170c252a0531459a981847a0 /upgrade.go
parent322ec42ce6da80915a80ed36f02bc6a15c238fb2 (diff)
more argv options
Diffstat (limited to 'upgrade.go')
-rw-r--r--upgrade.go35
1 files changed, 0 insertions, 35 deletions
diff --git a/upgrade.go b/upgrade.go
index ed44b12..286ad3d 100644
--- a/upgrade.go
+++ b/upgrade.go
@@ -9,41 +9,6 @@ import (
"go.wit.com/log"
)
-/*
-func doAptUpgrade() {
- if argv.DryRun {
- log.Info("--dry-run", []string{"apt", "update"})
- } else {
- result := shell.Run([]string{"apt", "update"})
- if result.Error != nil {
- log.Info("apt update error:", result.Error)
- badExit(result.Error)
- }
- }
-
- fmt.Println("Installed Packages:")
- loop := me.machine.Wit.SortByName()
- for loop.Scan() {
- p := loop.Next()
- // log.Info("apt install", p.Name)
- if p.Name == "" {
- log.Info("something wrong. p.Name was blank", p)
- continue
- }
- if me.machine.IsInstalled(p.Name) {
- cmd := []string{"apt", "install", p.Name}
- if argv.DryRun {
- log.Info("--dry-run", cmd)
- } else {
- log.Info("Running:", cmd)
- shell.RunRealtime([]string{"apt", "install", p.Name})
- }
- }
- }
- okExit("installed")
-}
-*/
-
func doAptList() {
log.DaemonMode(true)
defer log.DaemonMode(false)