]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
use --upgrade when installing chacractl 218/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 9 Nov 2015 20:13:14 +0000 (14:13 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 9 Nov 2015 20:13:14 +0000 (14:13 -0600)
This will allow us to not have to change the CHACRACTL_VERSION variable
each time we release a new version of chacractl.

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

index 4ac14309f05c0ff4f32e6d29821372ca3e16c84f..292cc13e7b31f2d809a1725cf03aaa7dcccaf167 100644 (file)
@@ -78,9 +78,9 @@ 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_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
+if ! $VENV/pip install --upgrade --find-links="file://$PIP_SDIST_INDEX" --no-index $CHACRACTL_VERSION; then
+    $VENV/pip install --upgrade --exists-action=i --download-directory="$PIP_SDIST_INDEX" $CHACRACTL_VERSION
+    $VENV/pip install --upgrade --find-links="file://$PIP_SDIST_INDEX" --no-index $CHACRACTL_VERSION
 fi
 
 # create the .chacractl config file
index bd7c065e59142e4e85cb8f718fbb40cf04e571cd..06f1be7793989a53367877980d6301eff5c4f538 100644 (file)
@@ -29,9 +29,9 @@ 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_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
+if ! pip install --upgrade --find-links="file://$PIP_SDIST_INDEX" --no-index $CHACRACTL_VERSION; then
+    pip install --upgrade --exists-action=i --download-directory="$PIP_SDIST_INDEX" $CHACRACTL_VERSION
+    pip install --upgrade --find-links="file://$PIP_SDIST_INDEX" --no-index $CHACRACTL_VERSION
 fi
 
 # create the .chacractl config file
index 0291106d50ed8bf5ebc1266fe08431698de63466..468fee5729cb68ffb2404b72d5ca1c7d69121368 100644 (file)
@@ -24,9 +24,9 @@ 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_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
+if ! $VENV/pip install --upgrade --find-links="file://$PIP_SDIST_INDEX" --no-index $CHACRACTL_VERSION; then
+    $VENV/pip install --upgrade --exists-action=i --download-directory="$PIP_SDIST_INDEX" $CHACRACTL_VERSION
+    $VENV/pip install --upgrade --find-links="file://$PIP_SDIST_INDEX" --no-index $CHACRACTL_VERSION
 fi
 
 # create the .chacractl config file