summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-01-28 22:03:02 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-01-30 00:18:37 +0100
commit1738bd1b18309b376991ce234e4894be7196e264 (patch)
treea0e316f3f647aeaf074c210344d15c013d2eea25
parent710f1b6ad2c9c967f7b592cfea471dcbb5f4f2b7 (diff)
build-ovs*.sh: Add apt-get update
In case the ubuntu:16.04 docker image already exists, update apt cache before installing packages, to prevent stale entries (packages that meanwhile were bumped to a newer version) from breaking the build. Change-Id: Ide95c1ecc76ee542b22f16df0b8d5fc603b4503d Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Notes
Notes (review): Code-Review+2: Ruijing <ruijing.guo@intel.com> Workflow+1: Ruijing <ruijing.guo@intel.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Fri, 03 Feb 2017 00:13:04 +0000 Reviewed-on: https://review.openstack.org/426614 Project: openstack/fuel-plugin-ovs Branch: refs/heads/master
-rwxr-xr-xovs_build/build-ovs-dpdk.sh1
-rwxr-xr-xovs_build/build-ovs-nsh-dpdk.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/ovs_build/build-ovs-dpdk.sh b/ovs_build/build-ovs-dpdk.sh
index 419f9d0..311c6c6 100755
--- a/ovs_build/build-ovs-dpdk.sh
+++ b/ovs_build/build-ovs-dpdk.sh
@@ -10,6 +10,7 @@ BUILD_HOME=${BUILD_HOME:-/tmp/ovs-dpdk}
10 10
11export DEB_BUILD_OPTIONS='parallel=8 nocheck' 11export DEB_BUILD_OPTIONS='parallel=8 nocheck'
12 12
13sudo apt-get update
13sudo apt-get -y --force-yes install devscripts dpkg-dev git wget dkms 14sudo apt-get -y --force-yes install devscripts dpkg-dev git wget dkms
14 15
15rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb 16rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb
diff --git a/ovs_build/build-ovs-nsh-dpdk.sh b/ovs_build/build-ovs-nsh-dpdk.sh
index 23cea86..3c4ca45 100755
--- a/ovs_build/build-ovs-nsh-dpdk.sh
+++ b/ovs_build/build-ovs-nsh-dpdk.sh
@@ -10,6 +10,7 @@ BUILD_HOME=${BUILD_HOME:-/tmp/ovs-dpdk}
10 10
11export DEB_BUILD_OPTIONS='parallel=8 nocheck' 11export DEB_BUILD_OPTIONS='parallel=8 nocheck'
12 12
13sudo apt-get update
13sudo apt-get -y --force-yes install devscripts dpkg-dev git wget dkms 14sudo apt-get -y --force-yes install devscripts dpkg-dev git wget dkms
14 15
15rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb 16rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb