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:
parent
2e15008a9e
commit
4755163104
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user