summaryrefslogtreecommitdiff
path: root/doDebian.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 22:02:38 -0500
committerJeff Carr <[email protected]>2025-10-03 22:02:38 -0500
commit21f674cc5d222ca3fde330d5f14e556555fff183 (patch)
treedc1dab65cd714f9d825df5c5a0d8b2c06a8cccdc /doDebian.go
parent1a0a7d2b8f9e5677af3f244c192b304eeadad776 (diff)
show tags
Diffstat (limited to 'doDebian.go')
-rw-r--r--doDebian.go25
1 files changed, 21 insertions, 4 deletions
diff --git a/doDebian.go b/doDebian.go
index 0a2617a..60b0600 100644
--- a/doDebian.go
+++ b/doDebian.go
@@ -44,7 +44,23 @@ func doDebian() {
}
found.Append(check)
}
- me.forge.PrintForgedTable(found)
+
+ tablePB := me.forge.GetBuildBaseTB(found)
+ log.Info("TABLE FUNC LEN=", len(tablePB.Funcs))
+ col := tablePB.AddStringFunc("a", func(r *gitpb.Repo) string {
+ debname := me.forge.Config.DebName(r.GetNamespace())
+ if actualp := me.machine.FindInstalledByName(debname); actualp != nil {
+ return "b"
+ }
+ return "c"
+ })
+ col.Width = 6
+ log.Info("TABLE FUNC LEN=", len(tablePB.Funcs))
+ tablePB.PrintTable()
+
+ // func (f *Forge) isInstalled(repo *gitpb.Repo) string {
+ // return "X"
+ // }
if !argv.DryRun {
me.forge.ConfigRill(16, 16)
@@ -82,12 +98,12 @@ func buildDeb(check *gitpb.Repo) error {
os.MkdirAll(outdir, 0755)
if argv.Build.Debian.Release {
- cmd = []string{"go-deb", "--release", "--dir", outdir}
+ cmd = []string{"go-deb", "--release", "--namespace", check.Namespace, "--dir", outdir}
} else {
- cmd = []string{"go-deb", "--dir", outdir}
+ cmd = []string{"go-deb", "--namespace", check.Namespace, "--dir", outdir}
}
if me.forge.Config.IsPrivate(check.GetNamespace()) {
- cmd = []string{"go-deb", "--dir", outdir}
+ cmd = []string{"go-deb", "--namespace", check.Namespace, "--dir", outdir}
return nil
}
@@ -105,6 +121,7 @@ func buildDeb(check *gitpb.Repo) error {
cmd = append(cmd, "--verbose")
}
if argv.DryRun {
+ log.Info("RUN:", check.FullPath, cmd)
return nil
}