summaryrefslogtreecommitdiff
path: root/doBuild.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 13:47:18 -0500
committerJeff Carr <[email protected]>2025-10-26 13:47:18 -0500
commit37a05aa8e02aa6fbc10bc873dbc731d6a947f9bf (patch)
tree770fdc89c44e150419298d56138a921f9c9a4bf7 /doBuild.go
parent45ffdae423f5d73579d933806436b1105c96a5e5 (diff)
new .deb build code
Diffstat (limited to 'doBuild.go')
-rw-r--r--doBuild.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/doBuild.go b/doBuild.go
index f477c0d..fa7a990 100644
--- a/doBuild.go
+++ b/doBuild.go
@@ -40,6 +40,7 @@ func doBuild() (string, error) {
if err != nil {
return "missing resources/go-deb list", err
}
+ tobuild := gitpb.NewRepos()
var simpletable [][]string
simpletable = append(simpletable, []string{"debname", "version", " age", "smartver", "curb", "curver", "newb", "arch", "FullPath"})
for i, line := range strings.Split(string(data), "\n") {
@@ -95,11 +96,20 @@ func doBuild() (string, error) {
} else {
age = cobol.Duration(t)
}
- simpletable = append(simpletable, []string{debname, p.Version, age, p.GetSmartVersion(), bcount, curver, newcount, arches, repo.FullPath})
+ 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)
+ // argvpb.GoodExit("built 1")
}
footer := cobol.SimpleTable(simpletable)
log.Info("simple build table footer:", footer)
+
+ argv.DryRun = true
+ // for r := range tobuild.IterAll() {
+ // }
/*
if err := doInstall(found); err != nil {
// log.Info("doInstall() failed", err)