packaging: Replace - for ~

Replace non-valid character from kata version.

This will make the version compatible with rpmbuild.

Fixes: #179

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
Jose Carlos Venegas Munoz 2018-09-06 12:33:05 -05:00
parent 4cb3083cd4
commit 368f4792a9

View File

@ -42,6 +42,9 @@ gen_version_file() {
golang_version="1.10.2"
golang_x84_64_sha256=$(curl -s -L "https://storage.googleapis.com/golang/go${golang_version}.linux-amd64.tar.gz.sha256")
# - is not a valid char for rpmbuild
# see https://github.com/semver/semver/issues/145
kata_version=${kata_version/-/\~}
cat >versions.txt <<EOT
# This is a generated file from ${script_name}