diff options
Diffstat (limited to 'doDebian.go')
| -rw-r--r-- | doDebian.go | 25 |
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 } |
