diff options
| author | Jeff Carr <[email protected]> | 2024-12-03 18:00:42 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-03 18:00:42 -0600 |
| commit | 9b9df05f33e20277ff0e5e811c55d95ab56f562c (patch) | |
| tree | bf151e340c7b6408303a3012c9bb41573767cc30 /findNext.go | |
| parent | 9b2e99ac6b4ce29f3a248f380f50123a406d1650 (diff) | |
more removal of old stuff
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 +} |
