]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
explicitly sepcify a chacractl version to install 217/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 9 Nov 2015 16:10:05 +0000 (10:10 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 9 Nov 2015 16:10:05 +0000 (10:10 -0600)
This fixes a bug where we don't get newer versions of chacractl
installed when we want it because of the use of the pip cache.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-build-next/build/setup
ceph-deploy/build/setup
ceph-release-rpm/build/build

index e972345a077f74c57fa6ca782adac81f2deb8d7b..4ac14309f05c0ff4f32e6d29821372ca3e16c84f 100644 (file)
@@ -74,11 +74,13 @@ VENV="$WORKSPACE/venv/bin"
 PIP_SDIST_INDEX="$HOME/.cache/pip"
 mkdir -p $PIP_SDIST_INDEX
 
+CHACRACTL_VERSION="chacractl>=0.0.4"
+
 # Install the package by trying with the cache first, otherwise doing a download only, and then
 # trying to install from the cache again.
-if ! $VENV/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index chacractl; then
-    $VENV/pip install --exists-action=i --download-directory="$PIP_SDIST_INDEX" chacractl
-    $VENV/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index chacractl
+if ! $VENV/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index $CHACRACTL_VERSION; then
+    $VENV/pip install --exists-action=i --download-directory="$PIP_SDIST_INDEX" $CHACRACTL_VERSION
+    $VENV/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index $CHACRACTL_VERSION
 fi
 
 # create the .chacractl config file
index 2947ff4ebed75647852652ee736e8e78a6ba6842..bd7c065e59142e4e85cb8f718fbb40cf04e571cd 100644 (file)
@@ -25,11 +25,13 @@ source $WORKSPACE/venv/bin/activate
 PIP_SDIST_INDEX="$HOME/.cache/pip"
 mkdir -p $PIP_SDIST_INDEX
 
+CHACRACTL_VERSION="chacractl>=0.0.4"
+
 # Install the package by trying with the cache first, otherwise doing a download only, and then
 # trying to install from the cache again.
-if ! pip install --find-links="file://$PIP_SDIST_INDEX" --no-index chacractl; then
-    pip install --exists-action=i --download-directory="$PIP_SDIST_INDEX" chacractl
-    pip install --find-links="file://$PIP_SDIST_INDEX" --no-index chacractl
+if ! pip install --find-links="file://$PIP_SDIST_INDEX" --no-index $CHACRACTL_VERSION; then
+    pip install --exists-action=i --download-directory="$PIP_SDIST_INDEX" $CHACRACTL_VERSION
+    pip install --find-links="file://$PIP_SDIST_INDEX" --no-index $CHACRACTL_VERSION
 fi
 
 # create the .chacractl config file
index 21f4bf2a4ca84ae30cda351348bc4bee6731a0fc..0291106d50ed8bf5ebc1266fe08431698de63466 100644 (file)
@@ -20,11 +20,13 @@ VENV="$WORKSPACE/venv/bin"
 PIP_SDIST_INDEX="$HOME/.cache/pip"
 mkdir -p $PIP_SDIST_INDEX
 
+CHACRACTL_VERSION="chacractl>=0.0.4"
+
 # Install the package by trying with the cache first, otherwise doing a download only, and then
 # trying to install from the cache again.
-if ! $VENV/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index chacractl; then
-    $VENV/pip install --exists-action=i --download-directory="$PIP_SDIST_INDEX" chacractl
-    $VENV/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index chacractl
+if ! $VENV/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index $CHACRACTL_VERSION; then
+    $VENV/pip install --exists-action=i --download-directory="$PIP_SDIST_INDEX" $CHACRACTL_VERSION
+    $VENV/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index $CHACRACTL_VERSION
 fi
 
 # create the .chacractl config file