Fix for pypcap import problem. 98/11198/2
authorThomas F Herbert <therbert@redhat.com>
Sun, 18 Mar 2018 16:11:21 +0000 (12:11 -0400)
committerPeter Mikus <pmikus@cisco.com>
Wed, 21 Mar 2018 09:04:20 +0000 (09:04 +0000)
JIRA: CSIT-991

This fix forces the downloads of the complete package for all the pip python
packages to be installed on Centos regardless of the Python metadata on
the host.

Change-Id: I9f5b9faf75306c2b0ae34ca640bc5f36811f900c
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
resources/tools/disk-image-builder/centos/build.sh

index 4b23042..c01d8f6 100755 (executable)
@@ -208,7 +208,7 @@ ln ${RPM_CACHE_DIR}/rpm-packages.txt ${OUTPUT_DIR}/temp/rpm/rpm-packages.txt
 mkdir -p ${PIP_CACHE_DIR}
 
 # Let PIP do the work of downloading and verifying packages
 mkdir -p ${PIP_CACHE_DIR}
 
 # Let PIP do the work of downloading and verifying packages
-pip install --download ${PIP_CACHE_DIR} -r ${LIST}/pip-requirements.txt
+pip download -d ${PIP_CACHE_DIR} -r ${LIST}/pip-requirements.txt
 
 # Link packages and requirements file into VM's temp directory
 mkdir -p ${OUTPUT_DIR}/temp/pip
 
 # Link packages and requirements file into VM's temp directory
 mkdir -p ${OUTPUT_DIR}/temp/pip