From 4cfca2fbd0eadaa831d9061a3144d878a5c440c5 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Thu, 26 Apr 2018 11:51:48 -0700 Subject: [PATCH] Build: Fix deb version to use tilde with prerelease versions (#29000) This commit converts the deb package to use tildes in place of dash in the internal package version. This is only relevant for prerelease versions of elasticsearch. Previously, this was not possible due to problems with the underlying library used by the ospackage plugin, but since a recent upgrade, it now works. closes #21139 --- distribution/packages/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/packages/build.gradle b/distribution/packages/build.gradle index 6e5b69a66f7..33f98386a89 100644 --- a/distribution/packages/build.gradle +++ b/distribution/packages/build.gradle @@ -270,7 +270,7 @@ Closure commonDebConfig(boolean oss) { customFields['License'] = 'Elastic-License' } - version = project.version + version = project.version.replace('-', '~') packageGroup 'web' requires 'bash' requires 'libc6'