fix hc2vpp centos integration job 21/18321/2
authorMichal Cmarada <mcmarada@cisco.com>
Fri, 15 Mar 2019 11:13:10 +0000 (12:13 +0100)
committerMichal Cmarada <mcmarada@cisco.com>
Mon, 18 Mar 2019 07:16:41 +0000 (07:16 +0000)
yum with --downloadonly option downloads also dependencies which
cannot be skipped. Because of this it is better to use yumdownloader
which downloads desired package only.

Change-Id: I1ff65f583abbea77784c5779a5da7879d6ed9580
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
jjb/hc2vpp/include-raw-hc2vpp-integration-prebuild.sh

index b8f88bc..1e54750 100644 (file)
@@ -49,10 +49,10 @@ if ! [[ -z ${REPO_NAME} ]]; then
         if [[ "${VERSION}" != 'RELEASE' ]]; then
             # download specific version if set
             echo VERSION: ${VERSION}
-            sudo yum -y install --downloadonly --downloaddir=./ vpp-api-java-${VERSION} || true
+            yumdownloader vpp-api-java-${VERSION} || true
         else
             # download latest version for specified stream
-            sudo yum -y install --downloadonly --downloaddir=./ vpp-api-java || true
+            yumdownloader vpp-api-java || true
         fi
     fi
 fi