hone in on gui updates

This commit is contained in:
Jeff Carr 2025-01-07 05:58:33 -06:00
parent ca66a42fd1
commit 0991092bfd
1 changed files with 10 additions and 2 deletions

12
scan.go
View File

@ -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