fix to get the synergy version when packaging

Commit 670f608252 introduced this bug.
We previously relied on the "version: " line of setup.cfg, but this
was removed due to using pbr.

We now get the synergy version from the git tag.

Change-Id: I31fc9215269b05acabba8c4288af540f4de9c0c4
Sem-Ver: bugfix
This commit is contained in:
Vincent Llorens 2016-10-18 11:24:49 +02:00
parent 2e15008a9e
commit 4755163104
2 changed files with 4 additions and 4 deletions

View File

@ -5,8 +5,8 @@ RPMBUILD=/home/pkger/rpmbuild
PKG_DIR=/tmp/synergy-service
function get_version() {
local file=$PKG_DIR/setup.cfg
export PKG_VERSION=$(grep -e "version = " $file | sed -r "s/version = ()/\1/")
cd $PKG_DIR
export PKG_VERSION=$(git tag -l "*.*.*" | sort -V | tail -1)
}
function setup() {

View File

@ -10,8 +10,8 @@ function copy_source() {
}
function get_version() {
local file=/home/pkger/python-synergy-service/setup.cfg
export PKG_VERSION=$(grep -e "version = " $file | sed -r "s/version = ()/\1/")
cd $PKG_DIR
export PKG_VERSION=$(git tag -l "*.*.*" | sort -V | tail -1)
}
function setup() {