summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 15:13:15 -0500
committerJeff Carr <[email protected]>2025-10-26 15:13:15 -0500
commit3d094417f0df51f8485a13897cbceb28b1421e26 (patch)
tree7415e9c10870d8812d416ef4a4a03e9718b6b7b5
parent37a05aa8e02aa6fbc10bc873dbc731d6a947f9bf (diff)
try and try again
-rw-r--r--doBuild.go16
1 files 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() {
// }