Fix JVPP stable branch builds 64/18964/2
authorMichal Cmarada <mcmarada@cisco.com>
Wed, 17 Apr 2019 10:41:37 +0000 (12:41 +0200)
committerMichal Cmarada <mcmarada@cisco.com>
Wed, 17 Apr 2019 10:42:04 +0000 (10:42 +0000)
Change-Id: I95d0d6dd529c596e7fad413e234155c6bd953d0d
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
jjb/scripts/setup_jvpp_dev_env.sh

index 8ef3608..f519dcb 100644 (file)
@@ -23,6 +23,10 @@ function setup {
         echo "REPO_URL: ${REPO_URL}"
         # Setup by installing vpp-dev and vpp-lib
         if [[ "$DISTRIB_ID" == "Ubuntu" ]]; then
+            if ! [[ "${STREAM}" == "master" ]]; then
+                echo "stable branch - clearing all fdio repos. new one will be installed."
+                sudo rm  -f /etc/apt/sources.list.d/fdio_*.list
+            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