summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scan.go12
1 files 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