summaryrefslogtreecommitdiff
path: root/doBuild.debian.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-16 02:48:55 -0500
committerJeff Carr <[email protected]>2025-10-16 02:48:55 -0500
commit23ab76aa96facbc7eba3e6c5d09dd66bcc8e3d43 (patch)
treec0f6ec452bfdcfdf510dd1a7fde2da2f590d413a /doBuild.debian.go
parentf8e5a9269f5adf640e440238bd08510d1cd76a1d (diff)
why does it keep rebuilding these?
Diffstat (limited to 'doBuild.debian.go')
-rw-r--r--doBuild.debian.go19
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")