diff options
| author | Jeff Carr <[email protected]> | 2025-10-26 13:47:18 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-26 13:47:18 -0500 |
| commit | 37a05aa8e02aa6fbc10bc873dbc731d6a947f9bf (patch) | |
| tree | 770fdc89c44e150419298d56138a921f9c9a4bf7 /doBuild.go | |
| parent | 45ffdae423f5d73579d933806436b1105c96a5e5 (diff) | |
new .deb build code
Diffstat (limited to 'doBuild.go')
| -rw-r--r-- | doBuild.go | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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) |
