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()
})
box2.NewButton("test master merge", func() {
r.Disable()
if !r.mergeAllDevelToMain() {
return
}
r.Enable()
})
box2.NewButton("show apps", func() {
loop := me.repos.View.ReposSortByName()
for loop.Scan() {
repo := loop.Repo()
rtype := repo.Status.RepoType()
switch rtype {
case "'binary'":
var repo *repolist.RepoRow
repo = loop.Repo()
if repo.IsBinary() {
// log.Info(repo.Status.Path(), "compile here. Show()")
repo.Show()
case "'library'":
} else {
// log.Info(repo.Status.Path(), "library here. 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())
continue
}
if result, err := repo.MergeDevelToMaster(); err == nil {
log.Warn("THINGS SEEM OK", repo.GetFullPath())
if repo.GetDevelVersion() == repo.GetMasterVersion() {
log.Info("devel and master branch are the same", repo.GetFullPath())
continue
}
if result, err := repo.MergeDevelToMaster(); err == nil {
log.Warn("A SINGLE MERGE WORKED. PAUSING", repo.GetFullPath())
return true
// continue
} else {
log.Warn("THINGS FAILED ", repo.GetFullPath())
log.Warn("err", err)