diff options
Diffstat (limited to 'releaseBox.go')
| -rw-r--r-- | releaseBox.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/releaseBox.go b/releaseBox.go index 5da083f..f62e9e2 100644 --- a/releaseBox.go +++ b/releaseBox.go @@ -145,6 +145,10 @@ func createReleaseBox(box *gui.Node) { ok, duration := doReleaseAll() s := fmt.Sprint(duration) log.Info("release returned", ok, "and ran for", s, "findCounter =", findCounter) + if !findOk { + log.Info("doRelease() immediately end something went wrong last time. findOk == false") + return + } first := findCounter if findCounter != 0 { log.Info("should try thsi doRelease() loop again since findCounter =", findCounter) @@ -152,6 +156,10 @@ func createReleaseBox(box *gui.Node) { s := fmt.Sprint(duration) log.Info("release returned", ok, "and ran for", s, "findCounter =", findCounter) } + if !findOk { + log.Info("doRelease() immediately end something went wrong last time. findOk == false") + return + } second := findCounter log.Info("doReleaseAll() first =", first, "second =", second) if first == 0 { @@ -169,6 +177,10 @@ func createReleaseBox(box *gui.Node) { log.Info("release returned", ok, "and ran for", s, "findCounter =", findCounter) third := findCounter log.Info("doReleaseAll() first =", first, "second =", second, "third =", third) + if !findOk { + log.Info("doRelease() immediately end something went wrong last time. findOk == false") + return + } } else { log.Info("doReleaseAll() first second match. something has gone terribly wrong") log.Info("killing guireleaser is a bad idea here. it will potentially loose state") @@ -251,6 +263,11 @@ func doReleaseAll() (bool, time.Duration) { loop := me.repos.View.ReposSortByName() for loop.Scan() { loop.Repo() + if !findOk { + log.Info("doRelease() immediately end something went wrong last time. findOk == false") + worked = false + break + } if doRelease() { log.Info("doRelease() worked. findCounter =", findCounter) } else { |
