parent
17e1a099c4
commit
20a21947f3
|
@ -28,6 +28,8 @@ func findUnreleased() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
log.Info("nothing left to unwind")
|
||||||
|
release.status.SetValue("ALL DONE?")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,23 +63,28 @@ func createUnreleaseBox(box *gui.Node) {
|
||||||
if rerelease() {
|
if rerelease() {
|
||||||
log.Info("good to re-release another one")
|
log.Info("good to re-release another one")
|
||||||
} else {
|
} else {
|
||||||
log.Info("loop(3) failed")
|
log.Info("re-release failed")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
me.Enable()
|
me.Enable()
|
||||||
})
|
})
|
||||||
group.NewButton("loop(10)", func() {
|
group.NewButton("loop(25)", func() {
|
||||||
me.Disable()
|
me.Disable()
|
||||||
unwindWhitelist()
|
unwindWhitelist()
|
||||||
for n := 0; n <= 10; n++ {
|
for n := 0; n <= 25; n++ {
|
||||||
if rerelease() {
|
if rerelease() {
|
||||||
log.Info("good to re-release another one")
|
log.Info("good to re-release another one")
|
||||||
} else {
|
} else {
|
||||||
|
if release.status.String() == "ALL DONE?" {
|
||||||
|
log.Info("maybe ALL DONE?")
|
||||||
|
me.Enable()
|
||||||
|
return
|
||||||
|
}
|
||||||
log.Info("loop() failed", n)
|
log.Info("loop() failed", n)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.Info("loop(10) worked")
|
log.Info("loop(25) worked")
|
||||||
me.Enable()
|
me.Enable()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -143,6 +150,8 @@ func rerelease() bool {
|
||||||
log.Info("EVERYTHING OK. RERELEASED", release.current.String())
|
log.Info("EVERYTHING OK. RERELEASED", release.current.String())
|
||||||
if findUnreleased() {
|
if findUnreleased() {
|
||||||
log.Info("GOOD TO RUN ANOTHER DAY ON:", release.current.String())
|
log.Info("GOOD TO RUN ANOTHER DAY ON:", release.current.String())
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.Info("SOMETHING FAILED")
|
log.Info("SOMETHING FAILED")
|
||||||
|
|
Loading…
Reference in New Issue