diff options
Diffstat (limited to 'scan.go')
| -rw-r--r-- | scan.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -8,12 +8,16 @@ import ( "go.wit.com/log" ) -func ScanRepositories() (int, string) { +func (r *RepoList) SetAutoScan(b bool) { + me.autoScan = b +} + +func (r *RepoList) ScanRepositories() (int, string) { var i int t := timeFunction(func() { for _, repo := range me.allrepos { i += 1 - repo.newScan() + repo.NewScan() } }) s := fmt.Sprint(t) @@ -21,7 +25,7 @@ func ScanRepositories() (int, string) { return i, s } -func (r *Repo) newScan() bool { +func (r *Repo) NewScan() bool { if r.status == nil { log.Warn("repo.status = nil. not initialized for some reason") return false |
