diff options
Diffstat (limited to 'doBuild.debian.go')
| -rw-r--r-- | doBuild.debian.go | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/doBuild.debian.go b/doBuild.debian.go index 3381bd9..563423f 100644 --- a/doBuild.debian.go +++ b/doBuild.debian.go @@ -197,14 +197,21 @@ func buildDeb(repo *gitpb.Repo) error { if argv.Build.Debian.Arch != "" { cmd = append(cmd, "--arch", argv.Build.Debian.Arch) } - if argv.Build.Debian.BuildVersion != 0 { - } _, reponame := filepath.Split(repo.Namespace) - if reponame != "autogenpb" { - // return nil + if shouldBuild(repo) != "yes" { + // shouldn't build this one + return nil + } else { + if reponame != "autogenpb" { + log.Info("WHY BUILD AUTOGEN HERE shouldBuild(repo) said", shouldBuild(repo)) + } } + // try to use lib/config bvers, err := getBuildVersion(repo) + if reponame != "autogenpb" { + log.Info("WHY BUILD AUTOGEN HERE", reponame, bvers, err) + } if err == nil { log.Info("Config.Get() gave back new buildId", bvers, repo.Namespace) } else { @@ -213,10 +220,6 @@ func buildDeb(repo *gitpb.Repo) error { } cmd = append(cmd, "--buildversion", log.Sprintf("%d", bvers)) - if shouldBuild(repo) != "yes" { - return nil - } - if argv.Verbose { // log.Info("build cmd:", cmd) cmd = append(cmd, "--verbose") |
