diff options
Diffstat (limited to 'scan.go')
| -rw-r--r-- | scan.go | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -13,7 +13,6 @@ func scanRepositories() { log.Info("Scanned", me.summary.totalOL.String(), "repositories. todo: count/show changes") t := timeFunction(func() { for _, repo := range me.allrepos { - repo.status.UpdateNew() repo.newScan() } }) @@ -26,15 +25,11 @@ func (r *repo) newScan() bool { log.Warn("repo.status = nil. not initialized for some reason") return false } - // r.scan() - /* - if repostatus.VerifyLocalGoRepo(r.getPath()) { - log.Verbose("repo actually exists", r.getPath()) - } else { - log.Warn("repo does not exist", r.getPath()) - return false - } - */ + + // first run the repostatus update + r.status.UpdateNew() + + // now read those values and display them in our table mname := r.status.GetMasterBranchName() mver := r.status.GetMasterVersion() mver = mver + " (" + mname + ")" @@ -63,7 +58,9 @@ func (r *repo) newScan() bool { if c, ok := r.status.Changed(); ok { c := strings.TrimSpace(c) - log.Warn("repo", r.status.Path(), "changed", c) + for _, line := range strings.Split(c, "\n") { + log.Info(r.status.Path(), line) + } } status := r.status.GetStatus() r.dirtyLabel.SetLabel(status) |
