Merge pull request #15 from gnuoy/set-pbr-version-for-builds
Set PBR_VERSION for updates and pinned builds
This commit is contained in:
commit
7569f3e598
@ -9,6 +9,11 @@ done
|
|||||||
|
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
|
||||||
|
# pbr seems unable to detect the current tag when installing
|
||||||
|
# from a local checkout using a git submodule. To work around this
|
||||||
|
# manually set the version.
|
||||||
|
export PBR_VERSION=$(cd mod/charm-helpers; git describe --tags)
|
||||||
|
|
||||||
if [[ -z "$UPDATE" ]]; then
|
if [[ -z "$UPDATE" ]]; then
|
||||||
pip install -t lib -r build-requirements.txt
|
pip install -t lib -r build-requirements.txt
|
||||||
else
|
else
|
||||||
@ -17,10 +22,6 @@ else
|
|||||||
git -C mod/ops-interface-ceph-client pull origin master
|
git -C mod/ops-interface-ceph-client pull origin master
|
||||||
git -C mod/ops-interface-tls-certificates pull origin master
|
git -C mod/ops-interface-tls-certificates pull origin master
|
||||||
git -C mod/charm-helpers pull origin master
|
git -C mod/charm-helpers pull origin master
|
||||||
# pbr seems unable to detect the current tag when installing
|
|
||||||
# from a local checkout using a git submodule. To work around this
|
|
||||||
# manually set the version.
|
|
||||||
export PBR_VERSION=$(cd mod/charm-helpers; git describe --tags)
|
|
||||||
pip install -t lib -r build-requirements.txt --upgrade
|
pip install -t lib -r build-requirements.txt --upgrade
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user