summaryrefslogtreecommitdiff
path: root/doBuild.debian.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-10 17:02:45 -0500
committerJeff Carr <[email protected]>2025-10-10 17:02:45 -0500
commitaee41a046883fb444204eb2b51bf12a97763919f (patch)
tree2499bb19aa57dd315ca6364389e2945fb2ff2ba8 /doBuild.debian.go
parent67809c6d898489b65573c6dfb4059aeef3258e69 (diff)
NEVER BUILD -dirty .deb packages. causes versioning problems.
it's bad idea anyway. I just tried it to see what would happen. it'll randomly upgrade based on the git-hash sort value so it's totally retarded. remove any attempt at the code ever allowing this. Block .deb packages in mirrors incoming/ from being added also.
Diffstat (limited to 'doBuild.debian.go')
-rw-r--r--doBuild.debian.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/doBuild.debian.go b/doBuild.debian.go
index 701b46b..ddf5af9 100644
--- a/doBuild.debian.go
+++ b/doBuild.debian.go
@@ -93,7 +93,12 @@ func isDebianRelease() bool {
}
func shouldBuild(repo *gitpb.Repo) string {
- if repo.IsDirty() && !argv.Force {
+ // NEVER EVER EVER BUILD DIRTY .deb PACKAGES
+ // versioning with debian will prioritize the 'd' before numbers
+ // so packages will be randomly upgraded based on the git hash
+ // just do a commit. Do not 'fix' this. This is a good idea anyway.
+ // This should be a policy everywhere.
+ if repo.IsDirty() {
return "no"
}
ver := repo.GetCurrentVersion()
@@ -169,7 +174,7 @@ func getOutdir(repo *gitpb.Repo) string {
}
if repo.CheckDirty() {
- return "/home/jcarr/incoming-devel"
+ return "/home/jcarr/incoming-dirty-junk"
}
return "/home/jcarr/incoming"