فهرست منبع

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

Jakob Borg 7 سال پیش
والد
کامیت
1cb09b7d2d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      build.go

+ 1 - 1
build.go

@@ -588,7 +588,7 @@ func buildDeb(target target) {
 		// 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)
+		debver = strings.Replace(debver, "-", "~", 1)
 	}
 	args := []string{
 		"-t", "deb",