From f9f57a9f7727c6fc8bdd634c2aa8ebf065ed51f2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 25 Sep 2025 15:03:24 -0500 Subject: fix upgrade --- wit.go | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/wit.go b/wit.go index 2e118c6..47fc37e 100644 --- a/wit.go +++ b/wit.go @@ -81,23 +81,12 @@ func (m *Machine) FindByVersion(name string, version string) *Package { return nil } -// read the package list file from mirrors.wit.com // obviously a hack at this point +// read the package list file from mirrors.wit.com func (m *Machine) InitWitMirrors() error { - if m.Wit == nil { - m.Wit = new(Packages) - } + m.Wit = new(Packages) err := m.scanPackageListFile("/var/lib/apt/lists/mirrors.wit.com_wit_dists_sid_main_binary-amd64_Packages") return err - /* - for _, p := range allpackages { - var all []string - for _, ver := range p.versions { - all = append(all, ver.v) - } - // log.Info(name, strings.Join(all, ", ")) - } - */ } // breaks up the apt list file into sections -- cgit v1.2.3