diff options
Diffstat (limited to 'findNext.go')
| -rw-r--r-- | findNext.go | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/findNext.go b/findNext.go index 4c368e9..ce1fd6d 100644 --- a/findNext.go +++ b/findNext.go @@ -4,6 +4,7 @@ package main import ( "go.wit.com/log" + "go.wit.com/lib/gui/repolist" "go.wit.com/lib/protobuf/gitpb" ) @@ -24,11 +25,8 @@ func findNext() bool { log.Info("boo, you didn't git clone", repo.GoPath()) return false } - log.Info("findNext() STARTING", check.GoPath) - log.Info("findNext() STARTING", check.GoPath) - log.Info("findNext() STARTING", check.GoPath) if check.GetTargetVersion() == check.GetCurrentBranchVersion() { - log.Info("findNext() no update needed", check.GoPath, check.GetTargetVersion(), "vs", check.GetCurrentBranchVersion()) + // log.Info("findNext() no update needed", check.GoPath, check.GetTargetVersion(), "vs", check.GetCurrentBranchVersion()) continue } else { log.Info("findNext() update needed", check.GoPath, check.GetTargetVersion(), "vs", check.GetCurrentBranchVersion()) @@ -126,3 +124,21 @@ func fixGodeps(check *gitpb.Repo) bool { } return good } + +func setCurrentRepo(repo *repolist.RepoRow, s string, note string) bool { + check := me.forge.Repos.FindByGoPath(repo.GoPath()) + if check == nil { + log.Info("boo, you didn't git clone", repo.GoPath()) + return false + } + + me.release.repo.SetText(check.GoPath) + me.release.status.SetText(s) + me.release.notes.SetText(note) + me.current = repo + me.release.version.SetText(check.GetTargetVersion()) + me.release.releaseVersionB.SetText("release version " + check.GetTargetVersion()) + me.release.openrepo.Enable() + + return true +} |
