From e9b9e24ce26aa8f13582797f5cec3651866d28c3 Mon Sep 17 00:00:00 2001 From: Dmitry Burmistrov Date: Fri, 18 Dec 2015 11:55:52 +0300 Subject: [PATCH] [8.0][deb] Fix wrong release format for deb openstack packages Change-Id: Id548984678ea325dd9fd30299f2b7607eb5cff42 --- perestroika/build-deb.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perestroika/build-deb.sh b/perestroika/build-deb.sh index 0ba0efc..e37a8e2 100755 --- a/perestroika/build-deb.sh +++ b/perestroika/build-deb.sh @@ -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