Browse Source

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>
tags/10.0-eol
Alexandru Avadanii 2 years ago
parent
commit
1738bd1b18
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      ovs_build/build-ovs-dpdk.sh
  2. 1
    0
      ovs_build/build-ovs-nsh-dpdk.sh

+ 1
- 0
ovs_build/build-ovs-dpdk.sh View File

@@ -10,6 +10,7 @@ BUILD_HOME=${BUILD_HOME:-/tmp/ovs-dpdk}
10 10
 
11 11
 export DEB_BUILD_OPTIONS='parallel=8 nocheck'
12 12
 
13
+sudo apt-get update
13 14
 sudo apt-get -y --force-yes install devscripts dpkg-dev git wget dkms
14 15
 
15 16
 rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb

+ 1
- 0
ovs_build/build-ovs-nsh-dpdk.sh View File

@@ -10,6 +10,7 @@ BUILD_HOME=${BUILD_HOME:-/tmp/ovs-dpdk}
10 10
 
11 11
 export DEB_BUILD_OPTIONS='parallel=8 nocheck'
12 12
 
13
+sudo apt-get update
13 14
 sudo apt-get -y --force-yes install devscripts dpkg-dev git wget dkms
14 15
 
15 16
 rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb

Loading…
Cancel
Save