summaryrefslogtreecommitdiff
path: root/doDebian.go
diff options
context:
space:
mode:
Diffstat (limited to 'doDebian.go')
-rw-r--r--doDebian.go15
1 files changed, 5 insertions, 10 deletions
diff --git a/doDebian.go b/doDebian.go
index e78bbf0..bedb691 100644
--- a/doDebian.go
+++ b/doDebian.go
@@ -39,7 +39,9 @@ func doBuildDeb() error {
continue
}
- found.Append(check)
+ if shouldBuild(check) == "yes" {
+ found.Append(check)
+ }
}
printPackagingTable(found)
@@ -77,24 +79,17 @@ func buildDeb(check *gitpb.Repo) error {
} else {
cmd = []string{"go-deb", "--namespace", check.Namespace, "--dir", outdir}
}
+
if me.forge.Config.IsPrivate(check.GetNamespace()) {
cmd = []string{"go-deb", "--namespace", check.Namespace, "--dir", outdir}
return nil
}
- if argv.Verbose || argv.Force {
+ if argv.Verbose {
// log.Info("build cmd:", cmd)
cmd = append(cmd, "--verbose")
}
- if argv.Force {
- // skip checks
- } else {
- if isPackageOnMirrors(check) {
- return nil
- }
- }
-
if argv.DryRun {
log.Info("RUN:", check.FullPath, cmd)
return nil