summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-11 11:08:37 -0500
committerJeff Carr <[email protected]>2025-10-11 11:09:47 -0500
commit2e4764ef21676da55eaed61b5252bbbf1882c435 (patch)
treebb53d43837de856adbdbf7efd7c5cab3a1426ae4
parente3046f7e431fc1c6ced4054517aa247298ab5f78 (diff)
never to be needed again. fixed on the mirrors
-rw-r--r--tableDefault.go21
1 files 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
}
+*/