From 3d094417f0df51f8485a13897cbceb28b1421e26 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 26 Oct 2025 15:13:15 -0500 Subject: try and try again --- doBuild.go | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/doBuild.go b/doBuild.go index fa7a990..b7b88f6 100644 --- a/doBuild.go +++ b/doBuild.go @@ -10,6 +10,7 @@ import ( "strings" "go.wit.com/lib/cobol" + "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/argvpb" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" @@ -83,7 +84,7 @@ func doBuild() (string, error) { // log.Info("MAKE DEB FOR:", i, path, debname, arches) bcount := fmt.Sprintf("%d", p.GetBuildCount()) var newcount string - smartver := p.GetSmartVersion() + smartver := "v" + p.GetSmartVersion() curver := repo.GetCurrentVersion() if smartver == curver { newcount = fmt.Sprintf("%d", p.GetBuildCount()+1) @@ -99,14 +100,23 @@ func doBuild() (string, error) { tobuild.Clone(repo) cmd := makeGoDebCmd(repo, newcount, "") cmdstr := fmt.Sprintf("%v", cmd) - simpletable = append(simpletable, []string{debname, p.Version, age, p.GetSmartVersion(), bcount, curver, newcount, arches, cmdstr}) - repo.RunVerbose(cmd) + simpletable = append(simpletable, []string{debname, p.Version, age, smartver, bcount, curver, newcount, arches, cmdstr}) + if !argv.DryRun { + err := repo.RunVerbose(cmd) + if err != nil { + argvpb.BadExit("go-deb failed", err) + } + } // argvpb.GoodExit("built 1") } footer := cobol.SimpleTable(simpletable) log.Info("simple build table footer:", footer) + if !argv.DryRun { + shell.RunVerbose([]string{"do-aptly"}) + } + argv.DryRun = true // for r := range tobuild.IterAll() { // } -- cgit v1.2.3