diff options
| -rw-r--r-- | doBuild.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -42,7 +42,7 @@ func doBuild() (string, error) { } tobuild := gitpb.NewRepos() var simpletable [][]string - simpletable = append(simpletable, []string{"debname", "version", " age", "smartver", "curb", "curver", "newb", "build", "arch", "FullPath"}) + simpletable = append(simpletable, []string{"debname", "version", " age", "smartver", "curb", "curver", "newb", "final", "build", "arch", "FullPath"}) for i, line := range strings.Split(string(data), "\n") { var path string var debname string @@ -83,12 +83,15 @@ func doBuild() (string, error) { // log.Info("MAKE DEB FOR:", i, path, debname, arches) bcount := fmt.Sprintf("%d", p.GetBuildCount()) var newcount string + var final string smartver := p.GetSmartVersion() curver := repo.GetSmartVersion() if smartver == curver { newcount = fmt.Sprintf("%d", p.GetBuildCount()+1) + final = repo.DebianCurrentVersion(p.GetBuildCount() + 1) } else { newcount = fmt.Sprintf("%d", 0) + final = repo.DebianCurrentVersion(0) } var age string if t := p.GetAge(); t == nil { @@ -105,7 +108,7 @@ func doBuild() (string, error) { tobuild.Clone(repo) } - simpletable = append(simpletable, []string{debname, p.Version, age, smartver, bcount, curver, newcount, build, arches, cmdstr}) + simpletable = append(simpletable, []string{debname, p.Version, age, smartver, bcount, curver, newcount, final, build, arches, cmdstr}) } |
