summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-07 06:28:27 -0500
committerJeff Carr <[email protected]>2025-10-07 06:28:27 -0500
commitb0a1247ffa93dfc2c27cf9c8aab97a4ce97cfeef (patch)
tree857afae06fb0e74df4e4160a2d1d28a7348415bd
parent8fb5b33bfc92e658988e58b46c6fab461520655f (diff)
fixing packaging logic
-rw-r--r--doDebian.go15
-rw-r--r--doUpgrade.go2
-rw-r--r--tableRepos.go2
3 files changed, 8 insertions, 11 deletions
diff --git a/doDebian.go b/doDebian.go
index 840528d..4308d8d 100644
--- a/doDebian.go
+++ b/doDebian.go
@@ -85,13 +85,6 @@ func isDebianRelease() bool {
return argv.Build.Debian.Release
}
-func shouldBuild(check *gitpb.Repo) bool {
- if isPackageOnMirrors(check) {
- return false
- }
- return true
-}
-
func buildDeb(check *gitpb.Repo) error {
var cmd []string
@@ -113,8 +106,12 @@ func buildDeb(check *gitpb.Repo) error {
cmd = append(cmd, "--verbose")
}
- if !shouldBuild(check) {
- return nil
+ if argv.Force {
+ // skip checks
+ } else {
+ if isPackageOnMirrors(check) {
+ return nil
+ }
}
if argv.DryRun {
diff --git a/doUpgrade.go b/doUpgrade.go
index a94e680..edf0f81 100644
--- a/doUpgrade.go
+++ b/doUpgrade.go
@@ -31,7 +31,7 @@ func doUpgrade() error {
me.machine, _ = zoopb.InitMachine()
if argv.Upgrade.List != nil {
- if argv.Upgrade.All {
+ if argv.All {
doPackageList(true)
} else {
doPackageList(false)
diff --git a/tableRepos.go b/tableRepos.go
index 57be680..7d322fc 100644
--- a/tableRepos.go
+++ b/tableRepos.go
@@ -87,7 +87,7 @@ func printPackagingTable(pb *gitpb.Repos) {
col.Width = 4
col = tablePB.AddStringFunc("build", func(r *gitpb.Repo) string {
- if shouldBuild(r) {
+ if isPackageOnMirrors(r) {
return "yes"
}
return ""