- vpp=(vpp vpp-dbg vpp-dev vpp-api-python libvppinfra libvppinfra-dev
- vpp-plugin-core vpp-plugin-dpdk)
+ both_quotes='"'"'"
+ match="[^${both_quotes}]*"
+ qmatch="[${both_quotes}]\?"
+ sed_command="s#.*apt_source_path=${qmatch}\(${match}\)${qmatch}#\1#p"
+ apt_fdio_repo_file=$(curl -s "${REPO_URL}"/script.deb.sh | \
+ sed -n ${sed_command}) || {
+ die "Local fdio repo file path fetch failed."
+ }
+
+ if [ ! -f ${apt_fdio_repo_file} ]; then
+ die "${apt_fdio_repo_file} not found, \
+ repository installation was not successful."
+ fi
+
+ pkgs=$(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 vpp) || {
+ die "Retrieval of available VPP packages failed."
+ }