summaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
Diffstat (limited to 'build.go')
-rw-r--r--build.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/build.go b/build.go
index 13bafde..45bdc11 100644
--- a/build.go
+++ b/build.go
@@ -31,9 +31,12 @@ func buildPackage(repo *gitpb.Repo) (bool, error) {
if arch == "" {
arch = argv.Arch
}
- const layout = "200601021504"
- now := time.Now().UTC()
- version := repo.Control["Version"] + "-" + now.Format(layout)
+ // const layout = "200601021504"
+ // now := time.Now().UTC()
+ version := repo.Control["Version"]
+ if argv.BuildVersion != "" {
+ version += argv.BuildVersion
+ }
repo.Control["Version"] = version
log.Info("version is:", version)
// debver := version + "-" + now.Format(layout)