summaryrefslogtreecommitdiff
path: root/doBuild.debian.go
diff options
context:
space:
mode:
Diffstat (limited to 'doBuild.debian.go')
-rw-r--r--doBuild.debian.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/doBuild.debian.go b/doBuild.debian.go
index 76a56f7..701b46b 100644
--- a/doBuild.debian.go
+++ b/doBuild.debian.go
@@ -17,6 +17,7 @@ import (
var totalBuilt int
func doBuildDeb() (string, error) {
+ log.Info("STARTING DEBIAN PACKAGE BUILD")
// clean out old deb files
globPattern := filepath.Join(me.homedir, "incoming", "*.deb")
files, err := filepath.Glob(globPattern)
@@ -37,6 +38,11 @@ func doBuildDeb() (string, error) {
if me.forge.Config.IsReadOnly(check.GetNamespace()) {
continue
}
+ if me.forge.Config.IsPrivate(check.GetNamespace()) {
+ if !argv.Build.Debian.Priv {
+ continue
+ }
+ }
if !check.IsBinary() {
continue
@@ -46,8 +52,8 @@ func doBuildDeb() (string, error) {
}
found.ActualSort()
- printPackagingTable(found)
- // me.forge.PrintTable(found)
+ footer := printPackagingTable(found)
+ log.Info("This is what will and will not be built:", footer)
me.forge.ConfigRill(16, 16)
stats := me.forge.RunOnRepos(found, buildDeb)
@@ -57,6 +63,10 @@ func doBuildDeb() (string, error) {
}
}
if totalBuilt == 0 {
+ if argv.DryRun {
+ log.Info("")
+ return "--dry-run TRUE (nothing done)", nil
+ }
// nothing built, no need to talk to mirrors
return "everything is current", nil
}