diff options
Diffstat (limited to 'findNext.go')
| -rw-r--r-- | findNext.go | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/findNext.go b/findNext.go index c2dead1..072e60d 100644 --- a/findNext.go +++ b/findNext.go @@ -9,10 +9,14 @@ import ( "go.wit.com/lib/gui/repolist" ) +var findCounter int +var findFix bool = false + // trys to figure out if there is still something to update // todo: redo this logic as it is terrible // rename this findNext() func findNext() bool { + findCounter = 0 loop := me.repos.View.ReposSortByName() for loop.Scan() { repo := loop.Repo() @@ -46,12 +50,24 @@ func findNext() bool { log.Info("boo, you didn't git clone", repo.GoPath()) return false } + if findFix { + fixGodeps(repo) + } + findCounter += 1 if me.forge.FinalGoDepsCheckOk(check) { setCurrentRepo(repo, "should be good to release", "pretty sure") return true } } - log.Info("tried to findNext() but not sure what to do next") + if me.current == nil { + if findCounter == 0 { + log.Info("NOTHING TO UPDATE. findCounter =", findCounter) + } else { + findFix = true + log.Info("me.current is nil findCounter =", findCounter, "so set findFix =", findFix) + } + } + log.Info("tried to findNext() but not sure what to do next counter =", findCounter, "findFix =", findFix) me.release.status.SetText("ALL DONE?") return false } |
