build: Only the first dash in the Debian version should become a tilde

This commit is contained in:
Jakob Borg 2018-05-05 15:29:35 +02:00
parent 3b5e1fa0fc
commit 1cb09b7d2d

View File

@ -588,7 +588,7 @@ func buildDeb(target target) {
// Debian interprets dashes as separator between main version and // Debian interprets dashes as separator between main version and
// Debian package version, and thus thinks 0.14.26-rc.1 is better // Debian package version, and thus thinks 0.14.26-rc.1 is better
// than just 0.14.26. This rectifies that. // than just 0.14.26. This rectifies that.
debver = strings.Replace(debver, "-", "~", -1) debver = strings.Replace(debver, "-", "~", 1)
} }
args := []string{ args := []string{
"-t", "deb", "-t", "deb",