FIX: Download only vpp packages 71/27071/1
authorJan Gelety <jgelety@cisco.com>
Thu, 7 May 2020 15:05:30 +0000 (17:05 +0200)
committerJan Gelety <jgelety@cisco.com>
Thu, 14 May 2020 15:58:36 +0000 (15:58 +0000)
Signed-off-by: Jan Gelety <jgelety@cisco.com>
Change-Id: I88682b972947d73ae8433b550bd5e96b0b7c2c76
(cherry picked from commit 36237cf89a092fee57faa6b2b1726d40df493845)

resources/libraries/bash/function/artifacts.sh

index 426782d..0a08d73 100644 (file)
@@ -88,7 +88,7 @@ function download_ubuntu_artifacts () {
 
     packages=$(apt-cache -o Dir::Etc::SourceList=${apt_fdio_repo_file} \
                -o Dir::Etc::SourceParts=${apt_fdio_repo_file} dumpavail \
 
     packages=$(apt-cache -o Dir::Etc::SourceList=${apt_fdio_repo_file} \
                -o Dir::Etc::SourceParts=${apt_fdio_repo_file} dumpavail \
-               | grep Package: | cut -d " " -f 2) || {
+               | grep Package: | cut -d " " -f 2 | grep vpp) || {
                    die "Retrieval of available VPP packages failed."
                }
     if [ -z "${VPP_VERSION-}" ]; then
                    die "Retrieval of available VPP packages failed."
                }
     if [ -z "${VPP_VERSION-}" ]; then