From 0991092bfd70dd56436f5bc3533ef52a0c0f7bd2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Jan 2025 05:58:33 -0600 Subject: [PATCH] hone in on gui updates --- scan.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scan.go b/scan.go index f0edf37..f6659a3 100644 --- a/scan.go +++ b/scan.go @@ -42,15 +42,23 @@ func (r *RepoList) ScanRepositories() (int, string) { } func (r *RepoRow) NewScan() int { - return r.NewScan2(r.pb) + return r.NewScan2() } -func (r *RepoRow) NewScan2(pb *gitpb.Repo) int { +func (r *RepoRow) NewScan3(newpb *gitpb.Repo) int { + log.Info("got to newscan3()") + log.Info("got to newscan3() new v", newpb.GetMasterVersion()) + log.Info("got to newscan3() old v", r.pb.GetMasterVersion()) + return r.NewScan2() +} + +func (r *RepoRow) NewScan2() int { var changed int = 0 if r.Status == nil { log.Log(REPOWARN, "repo.Status = nil. not initialized for some reason") return changed } + pb := r.pb if pb == nil { log.Log(REPOWARN, "NewScan() pb = nil") return changed