summaryrefslogtreecommitdiff
path: root/releaseBox.go
diff options
context:
space:
mode:
Diffstat (limited to 'releaseBox.go')
-rw-r--r--releaseBox.go42
1 files changed, 0 insertions, 42 deletions
diff --git a/releaseBox.go b/releaseBox.go
index e4de30c..1ba48cf 100644
--- a/releaseBox.go
+++ b/releaseBox.go
@@ -285,45 +285,3 @@ func setCurrentRepo(newcur *repolist.RepoRow, s string, note string) bool {
return true
}
-
-// 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 {
- loop := me.repos.View.ReposSortByName()
- for loop.Scan() {
- repo := loop.Repo()
- if repo.Status.IsReleased() {
- continue
- }
- if repo.Status.Whitelist {
- continue
- }
- if repo.ReadOnly() {
- // log.Info("findNext() skipping readonly")
- continue
- }
- if repo.CheckDirty() {
- log.Info("findNext() skipping dirty")
- continue
- }
- // do makeredomod here
- // if ! repo.Status.Exists("go.sum") {
- // }
- if repo.Status.IsPrimitive() {
- log.Info("findNext()", repo.GoPath())
- if setCurrentRepo(repo, "PRIMATIVE", "release new version") {
- return true
- }
- continue
- }
- log.Info("findNext()", repo.GoPath(), "is not a primative repo")
- if checkValidGoSum(repo) {
- setCurrentRepo(repo, "should be good to release", "pretty sure")
- return true
- }
- }
- log.Info("tried to findNext() but not sure what to do next")
- me.release.status.SetText("ALL DONE?")
- return false
-}