diff options
Diffstat (limited to 'prepareRelease.go')
| -rw-r--r-- | prepareRelease.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/prepareRelease.go b/prepareRelease.go index 3b0a03c..8532961 100644 --- a/prepareRelease.go +++ b/prepareRelease.go @@ -108,6 +108,16 @@ func rePrepareRelease() { continue } + if alreadyDone(check) { + // means it was already published + // protects against logic errors that might result + // in an infinite loop + log.Info("WARNING already done", check.GetGoPath()) + log.Info("WARNING already done", check.GetGoPath()) + log.Info("WARNING already done", check.GetGoPath()) + continue + } + if argv.Quick != nil { // if argv has 'quick' don't do anything // that doesn't actually have a patch @@ -139,3 +149,12 @@ func rePrepareRelease() { } me.forge.PrintHumanTable(me.found) } + +func alreadyDone(repo *gitpb.Repo) bool { + for _, gopath := range me.done { + if repo.GetGoPath() == gopath { + return true + } + } + return false +} |
