summaryrefslogtreecommitdiff
path: root/doBuild.debian.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-09 04:31:10 -0500
committerJeff Carr <[email protected]>2025-10-09 04:31:10 -0500
commit98bb38d6999f94d507868247841d9b8d6eff8a75 (patch)
treef1dc35b0dad362e128d975d4b8a04247756838a2 /doBuild.debian.go
parent0b646a20b812f337251c0ed950afeba9b97cfcc7 (diff)
cleaning up publish
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
}