builds and seems to work still

This commit is contained in:
Jeff Carr 2025-01-07 04:51:42 -06:00
parent 73c3969731
commit c9f948de9f
1 changed files with 19 additions and 10 deletions

View File

@ -107,21 +107,25 @@ func (r *repoWindow) repoMenu() *gui.Node {
r.Enable() r.Enable()
}) })
box2.NewButton("test master merge", func() {
r.Disable()
if !r.mergeAllDevelToMain() {
return
}
r.Enable()
})
box2.NewButton("show apps", func() { box2.NewButton("show apps", func() {
loop := me.repos.View.ReposSortByName() loop := me.repos.View.ReposSortByName()
for loop.Scan() { for loop.Scan() {
repo := loop.Repo() var repo *repolist.RepoRow
rtype := repo.Status.RepoType() repo = loop.Repo()
switch rtype { if repo.IsBinary() {
case "'binary'":
// log.Info(repo.Status.Path(), "compile here. Show()") // log.Info(repo.Status.Path(), "compile here. Show()")
repo.Show() repo.Show()
case "'library'": } else {
// log.Info(repo.Status.Path(), "library here. Hide()") // log.Info(repo.Status.Path(), "library here. Hide()")
repo.Hide() repo.Hide()
default:
log.Info(repo.Status.Path(), "unknown type", rtype)
// repo.Hide()
} }
} }
}) })
@ -151,9 +155,14 @@ func (r *repoWindow) mergeAllDevelToMain() bool {
log.Info("not on devel branch", repo.GetFullPath()) log.Info("not on devel branch", repo.GetFullPath())
continue continue
} }
if result, err := repo.MergeDevelToMaster(); err == nil { if repo.GetDevelVersion() == repo.GetMasterVersion() {
log.Warn("THINGS SEEM OK", repo.GetFullPath()) log.Info("devel and master branch are the same", repo.GetFullPath())
continue continue
}
if result, err := repo.MergeDevelToMaster(); err == nil {
log.Warn("A SINGLE MERGE WORKED. PAUSING", repo.GetFullPath())
return true
// continue
} else { } else {
log.Warn("THINGS FAILED ", repo.GetFullPath()) log.Warn("THINGS FAILED ", repo.GetFullPath())
log.Warn("err", err) log.Warn("err", err)