mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 02:18:44 -07:00
build: Use tildes in Debian package versioning
Makes their version sorting closer to the semver we expect.
This commit is contained in:
parent
a1bcc15458
commit
2579e8f715
4
build.go
4
build.go
@ -523,6 +523,10 @@ func buildDeb(target target) {
|
|||||||
debver := version
|
debver := version
|
||||||
if strings.HasPrefix(debver, "v") {
|
if strings.HasPrefix(debver, "v") {
|
||||||
debver = debver[1:]
|
debver = debver[1:]
|
||||||
|
// Debian interprets dashes as separator between main version and
|
||||||
|
// Debian package version, and thus thinks 0.14.26-rc.1 is better
|
||||||
|
// than just 0.14.26. This rectifies that.
|
||||||
|
debver = strings.Replace(debver, "-", "~", -1)
|
||||||
}
|
}
|
||||||
runPrint("fpm", "-t", "deb", "-s", "dir", "-C", "deb",
|
runPrint("fpm", "-t", "deb", "-s", "dir", "-C", "deb",
|
||||||
"-n", "syncthing", "-v", debver, "-a", debarch,
|
"-n", "syncthing", "-v", debver, "-a", debarch,
|
||||||
|
Loading…
Reference in New Issue
Block a user