[8.0][deb] Fix wrong release format for deb openstack packages
Change-Id: Id548984678ea325dd9fd30299f2b7607eb5cff42
This commit is contained in:
parent
05e6b2764e
commit
e9b9e24ce2
@ -42,7 +42,8 @@ main () {
|
||||
# Get revision number as commit count from tag to head of source branch
|
||||
local _rev=$(git -C $_srcpath rev-list --no-merges ${release_tag}..origin/${SOURCE_BRANCH} | wc -l)
|
||||
[ "$GERRIT_CHANGE_STATUS" == "NEW" ] && _rev=$(( $_rev + 1 ))
|
||||
local release="1~u14.04+mos${_rev}"
|
||||
local release=$(dpkg-parsechangelog --show-field Version -l${_debianpath}/debian/changelog | cut -d'-' -f2 | sed -r 's|[0-9]+$||')
|
||||
local release="${release}${_rev}"
|
||||
[ "$GERRIT_CHANGE_STATUS" == "NEW" ] && release="${release}+git.${gitshasrc}.${gitshaspec}"
|
||||
local fullver=${epochnumber}${version}-${release}
|
||||
# Update version and changelog
|
||||
|
Loading…
Reference in New Issue
Block a user