From 2e4764ef21676da55eaed61b5252bbbf1882c435 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 11 Oct 2025 11:08:37 -0500 Subject: never to be needed again. fixed on the mirrors --- tableDefault.go | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/tableDefault.go b/tableDefault.go index e732e74..7885f93 100644 --- a/tableDefault.go +++ b/tableDefault.go @@ -3,7 +3,6 @@ package zoopb import ( - "go.wit.com/lib/fhelp" "go.wit.com/log" ) @@ -96,14 +95,6 @@ func (m *Machine) makeSmartTable(pb *Packages) *PackagesTable { }) col.Width = 1 - col = t.AddStringFunc("BAD", func(p *Package) string { - if m.MirrorsOutOfDate(p) { - return "BAD" - } - return "" - }) - col.Width = 3 - col = t.AddPackage() col.Width = 16 @@ -132,20 +123,13 @@ func (m *Machine) WillUpgrade(p *Package) bool { // not installed. can not upgrade return false } - v1, _ := fhelp.NewDebVersion(check.Version) - v2, _ := fhelp.NewDebVersion(p.Version) - if v1.Equal(v2) { - // log.Info("do nothing", v1, v2) - return false - } - if v1.LessThan(v2) { - log.Info("upgrading from", v1, "to", v2) + if check.Version != p.Version { return true } - log.Info("WEIRD: keeping on machine version:", v1, "newer than mirrors.wit.com:", v2) return false } +/* // this means somehow this machine has a newer version than the mirrors have // true if the package 'p' is newer than the installed package func (m *Machine) MirrorsOutOfDate(p *Package) bool { @@ -166,3 +150,4 @@ func (m *Machine) MirrorsOutOfDate(p *Package) bool { } return false } +*/ -- cgit v1.2.3