From: Michal Cmarada Date: Tue, 30 Apr 2019 11:21:48 +0000 (+0200) Subject: fix filtering of VPP package for hc2vpp-pkg-push script X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F19257%2F1;p=ci-management.git fix filtering of VPP package for hc2vpp-pkg-push script Change-Id: I52caea21f55fda75def9540b5ea384f6e1901552 Signed-off-by: Michal Cmarada --- diff --git a/jjb/hc2vpp/include-raw-hc2vpp-pkg-push.sh b/jjb/hc2vpp/include-raw-hc2vpp-pkg-push.sh index 2f5e3d46e..fbf06c029 100644 --- a/jjb/hc2vpp/include-raw-hc2vpp-pkg-push.sh +++ b/jjb/hc2vpp/include-raw-hc2vpp-pkg-push.sh @@ -23,7 +23,10 @@ if [[ "${STREAM}" == "master" ]]; then else # Determine VPP Java API version used in maven build JVPP_VERSION=`apt list --installed | grep vpp-api-java | awk '{ printf $2; }'` - VERSION=`apt-cache showpkg vpp-api-java |grep "$JVPP_VERSION" |grep vpp | sed "s/.*(. //" | sed "s/).*//"` + # get vpp-api-java package dependencies + JVPP_DEPS=`apt-cache show vpp-api-java=${JVPP_VERSION} |grep Depends: | sed "s/Depends: //"` + # separate deps with newline, then find VPP dependency and filter out the version + VERSION=`echo ${JVPP_DEPS}| sed "s/, /\\n/" |grep "vpp " | sed "s/).*//" |sed "s/.* //"` # Write a file that will echo VPP dependencies echo -n 'echo' > vpp_dependencies