summaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-07 05:20:12 -0500
committerJeff Carr <[email protected]>2025-10-07 05:20:12 -0500
commit8e00d326078a7d65655ce3938123a4b2003c5168 (patch)
treeb819e2913969ac270592b91e1ead5993f86884de /build.go
parent4ecfd42f708f081bc3ae80e2871429563d88ccd1 (diff)
Diffstat (limited to 'build.go')
-rw-r--r--build.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/build.go b/build.go
index bacb958..72b1174 100644
--- a/build.go
+++ b/build.go
@@ -31,13 +31,14 @@ func buildPackage(repo *gitpb.Repo) (bool, error) {
if arch == "" {
arch = "amd64" // todo: detect what you are building on
}
- version := repo.Control["Version"]
- log.Info("version is:", version)
const layout = "200601021504"
now := time.Now()
- debver := version + "-" + now.Format(layout)
+ version := repo.Control["Version"] + "-" + now.Format(layout)
+ repo.Control["Version"] = version
+ log.Info("version is:", version)
+ // debver := version + "-" + now.Format(layout)
- debname := filename + "_" + debver + "_" + arch + ".deb"
+ debname := filename + "_" + version + "_" + arch + ".deb"
var fulldebname string
if argv.OutDir == "" {
fulldebname = debname