[8.0][rpm] Fix wrong release format for rpm openstack packages

Remove MOS version from rpm package version string

Change-Id: If57d42c2517a80665b6ebd8985b48b0389e8682a
Related-Bug: #1526713
This commit is contained in:
Dmitry Burmistrov 2015-12-23 10:47:33 +03:00
parent d15edd2128
commit 35f8ede206
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ This package provides the %{-n*} kernel modules
# Get revision number as commit count for src+spec projects
local _rev=$(git -C $_srcpath rev-list --no-merges ${version}..origin/${SOURCE_BRANCH} | wc -l)
[ "$GERRIT_CHANGE_STATUS" == "NEW" ] && _rev=$(( $_rev + 1 ))
local release="mos8.0.${_rev}"
local release="mos${_rev}"
[ "$GERRIT_CHANGE_STATUS" == "NEW" ] && release="${release}.git.${gitshasrc}.${gitshaspec}"
local TAR_NAME=${PACKAGENAME}-${version}.tar.gz
# Update version and changelog