]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
build: fix unkown option 1005/head
authorSébastien Han <seb@redhat.com>
Mon, 16 Apr 2018 16:51:30 +0000 (18:51 +0200)
committerSébastien Han <seb@redhat.com>
Mon, 16 Apr 2018 16:51:30 +0000 (18:51 +0200)
Newer version of pip does not support --download anymore, the option has
been replaced by --cache-dir.
This fixes errors like:

+ /tmp/venv.ufvIkiZl8v/bin/pip download
--dest=/home/jenkins-build/.cache/pip pip
ERROR: unknown command "download"

Signed-off-by: Sébastien Han <seb@redhat.com>
scripts/build_utils.sh

index e175a10eeef34f8225a7227d868431c65dd90ac8..e47622658e4fdd4af7cde5f3b6af2ecf4b79cadc 100644 (file)
@@ -30,7 +30,7 @@ pip_download() {
     if ! $VENV/pip download $options --dest="$PIP_SDIST_INDEX" $package; then
         # pip <8.0.0 does not have "download" command
         $VENV/pip install $options \
-                  --upgrade --exists-action=i --download="$PIP_SDIST_INDEX" \
+                  --upgrade --exists-action=i --cache-dir="$PIP_SDIST_INDEX" \
                   $package
     fi
 }