diff options
| author | Jeff Carr <[email protected]> | 2025-10-09 13:33:04 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-09 13:33:04 -0500 |
| commit | 3305208e4a74c8c36b299d6d7553c7884fee4093 (patch) | |
| tree | 5b32e9a3cb2da8d371676d8ee6bbe34a301dba55 /doUpgrade.go | |
| parent | 98bb38d6999f94d507868247841d9b8d6eff8a75 (diff) | |
new .proto filev0.1.30
Diffstat (limited to 'doUpgrade.go')
| -rw-r--r-- | doUpgrade.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doUpgrade.go b/doUpgrade.go index 1cda60d..6405f83 100644 --- a/doUpgrade.go +++ b/doUpgrade.go @@ -13,11 +13,11 @@ import ( func doPackageList(all bool) { installed := zoopb.NewPackages() - for p := range me.machine.Wit.IterByName() { + for p := range me.machine.Wit.IterByPackage() { if all { installed.Append(p) } else { - found := me.machine.FindInstalledByName(p.Name) + found := me.machine.FindInstalledByName(p.Package) if found == nil { continue } @@ -54,24 +54,24 @@ func doUpgrade() error { if argv.Force { // 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) { - debian.AptRemove(p.Name) + for p := range me.machine.Wit.IterByPackage() { + if me.machine.IsInstalled(p.Package) { + debian.AptRemove(p.Package) } } } - for p := range me.machine.Wit.IterByName() { + for p := range me.machine.Wit.IterByPackage() { if me.machine.WillUpgrade(p) { if argv.DryRun { log.Info("Would install here without --dry-run") continue } if argv.Force { - debian.AptInstall(p.Name) + debian.AptInstall(p.Package) continue } - if _, err := debian.AptInstall(p.Name); err != nil { + if _, err := debian.AptInstall(p.Package); err != nil { me.sh.BadExit("damn it", err) } } |
