diff 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) |
