diff --git a/build.go b/build.go index 08d81414e..8b43a2b18 100644 --- a/build.go +++ b/build.go @@ -645,6 +645,9 @@ func buildDeb(target target) { // than just 0.14.26. This rectifies that. debver = strings.Replace(debver, "-", "~", -1) } + if strings.Contains(debver, "_") { + debver = strings.Replace(debver, "_", "~", -1) + } args := []string{ "-t", "deb", "-s", "dir",