diff options
| author | Jeff Carr <[email protected]> | 2025-10-15 10:58:25 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-15 10:58:25 -0500 |
| commit | 920370f2dd17af3da30fe809fd0ff822993feb18 (patch) | |
| tree | d6ae8e8b9855087ad67f03f805af78ced7b45aad | |
| parent | 3af7b72d9acb35c1ed88957a0645df621be5b7cc (diff) | |
try to always use -0 on released versions
| -rw-r--r-- | currentVersions.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/currentVersions.go b/currentVersions.go index 8a7d19f..358c1ac 100644 --- a/currentVersions.go +++ b/currentVersions.go @@ -130,6 +130,9 @@ func (repo *Repo) DebianCurrentVersion(buildnum int) string { // .deb files don't like "v0.0.90-1-g778234j" // so remove the end so it's "0.0.90-1" parts := strings.Split(curver, "-") + if len(parts) == 1 { + curver = curver + "-0" // patches then show up as "-1", "-2", etc + } if len(parts) > 1 { curver = strings.Join(parts[0:2], "-") } |
