diff --git a/scan.go b/scan.go index f6659a3..af99bf6 100644 --- a/scan.go +++ b/scan.go @@ -45,10 +45,15 @@ func (r *RepoRow) NewScan() int { return r.NewScan2() } +func (r *RepoRow) UpdatePb(newpb *gitpb.Repo) { + r.pb = newpb +} + 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()) + if newpb.GetMasterVersion() != r.pb.GetMasterVersion() { + log.Info("THIS IS IT", newpb.GetMasterVersion(), r.pb.GetMasterVersion(), newpb.GetGoPath()) + } + r.pb = newpb return r.NewScan2() }