summaryrefslogtreecommitdiff
path: root/doDebian.go
diff options
context:
space:
mode:
Diffstat (limited to 'doDebian.go')
-rw-r--r--doDebian.go15
1 files changed, 6 insertions, 9 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 {