delete the references to packagecloud.io .deb repositories after installing vpp-ext... 48/30448/1
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 16 Dec 2020 15:16:24 +0000 (15:16 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 16 Dec 2020 15:19:51 +0000 (15:19 +0000)
If a new empty packagecloud.io/fdio/XXYY empty repository is being added during the stable/XXYY
branch creation process, the jobs will fail unless a dummy artifact is added to this repository.
Since we only use this repository to install the right version of vpp-ext-deps, delete
the references after that portion is complete.

Change-Id: Ia5dfa5bf0193c0af8671d561d27f9f02c4e641f4
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
jjb/scripts/setup_vpp_dpdk_dev_env.sh

index cd5bab4..2c55f16 100644 (file)
@@ -48,6 +48,9 @@ function setup {
                 force_opts="$force_opts --allow-change-held-packages"
                 sudo apt-get -y $force_opts install vpp-ext-deps || true
             fi
+            echo "Removing packagecloud.io repository references and running apt-get update"
+            sudo rm -f /etc/apt/sources.list.d/fdio_*.list
+            sudo apt-get update -qq || true
         elif [ "${OS_ID,,}" == "centos" ] ; then
             if [ "${STREAM}" != "master" ] ; then
                 echo "stream '${STREAM}' is not master: replacing packagecloud repo list with stream specific list"