]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ignore if file exist when installing with pip from cache
authorAlfredo Deza <adeza@redhat.com>
Wed, 24 Jun 2015 17:30:20 +0000 (13:30 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 24 Jun 2015 17:30:43 +0000 (13:30 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-deploy-pull-requests/build/setup

index dd345e4e48dbf03c8f6dd996d222a63ee8b8212c..f6e835dc59cd4ef73214e01f7569678756d142e3 100644 (file)
@@ -25,7 +25,7 @@ fi
 # 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/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index ansible; then
-    venv/bin/pip install --download-directory="$PIP_SDIST_INDEX" ansible
+    venv/bin/pip install --exists-action=i --download-directory="$PIP_SDIST_INDEX" ansible
     venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index ansible
 fi