diff options
author | Ed Kern <ejk@cisco.com> | 2019-04-12 14:58:27 -0600 |
---|---|---|
committer | Ed Kern <ejk@cisco.com> | 2019-04-12 15:13:19 -0600 |
commit | 9b8d71086c1272de6a2201f82107cf19829e6f9e (patch) | |
tree | 300f54fef55a8de6d5d8b3fdbfe4219795b209e9 | |
parent | 78ffb3b6514eafe2cdd30e457bb390b2c5a8e59b (diff) |
VPP: packagecloud branch check
If branch is not master it removes preinstalled pointer
and runs packagecloud repo install script
Change-Id: I450b749a199cb431e04029174d28424969bccc91
Signed-off-by: Ed Kern <ejk@cisco.com>
-rw-r--r-- | jjb/scripts/setup_vpp_dpdk_dev_env.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/jjb/scripts/setup_vpp_dpdk_dev_env.sh b/jjb/scripts/setup_vpp_dpdk_dev_env.sh index c84bf8148..087e535d9 100644 --- a/jjb/scripts/setup_vpp_dpdk_dev_env.sh +++ b/jjb/scripts/setup_vpp_dpdk_dev_env.sh @@ -11,11 +11,16 @@ function setup { echo "REPO_URL: ${REPO_URL}" # Setup by installing vpp-dev and vpp-lib if [ "$OS_ID" == "ubuntu" ]; then + if ! [ "${STREAM}" == "master" ]; then + echo "tree not master deleting packagecloud repo pointer" + sudo rm -f /etc/apt/sources.list.d/fdio_master.list + curl -s https://packagecloud.io/install/repositories/fdio/${STREAM}/script.deb.sh | sudo bash + fi if [ -f /etc/apt/sources.list.d/99fd.io.list ];then echo "Deleting: /etc/apt/sources.list.d/99fd.io.list" sudo rm /etc/apt/sources.list.d/99fd.io.list fi - curl -s https://packagecloud.io/install/repositories/fdio/${STREAM}/script.deb.sh | sudo bash + sudo apt-get -y --force-yes install vpp-dpdk-dev || true sudo apt-get -y --force-yes install vpp-dpdk-dkms || true sudo apt-get -y --force-yes install vpp-ext-deps || true |