diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 06:49:33 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 06:49:33 -0500 |
| commit | 4574971b222384f3f0f1a5f41ce03ac7e495d682 (patch) | |
| tree | b1aba2cd3bb699cc170c252a0531459a981847a0 /upgrade.go | |
| parent | 322ec42ce6da80915a80ed36f02bc6a15c238fb2 (diff) | |
more argv options
Diffstat (limited to 'upgrade.go')
| -rw-r--r-- | upgrade.go | 35 |
1 files changed, 0 insertions, 35 deletions
@@ -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) |
