summaryrefslogtreecommitdiff
path: root/scan.go
diff options
context:
space:
mode:
Diffstat (limited to 'scan.go')
-rw-r--r--scan.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/scan.go b/scan.go
index 8f36f1b..11c9dce 100644
--- a/scan.go
+++ b/scan.go
@@ -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