build: apt: --force-yes.

For arm64 builds, some packages are fetched from linux.enea.com,
leading to package version being reported as "older", although in
fact it is newer (dpkg version comparison is not that great with
suffixes). Also, since we don't explicitly add the GPG key of
the linux.enea.com repo yet, apt is complaining about unverified
package sources.

Bypass the above by using "--force-yes", next to "-y".

Change-Id: I4899fe62aaad9a13f8b2f9ffbdf2f3631ecba164
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
This commit is contained in:
Alexandru Avadanii 2016-09-03 20:52:05 +02:00
parent 70176c98b5
commit 710f1b6ad2
2 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@ BUILD_HOME=${BUILD_HOME:-/tmp/ovs-dpdk}
export DEB_BUILD_OPTIONS='parallel=8 nocheck'
sudo apt-get -y install devscripts dpkg-dev git wget dkms
sudo apt-get -y --force-yes install devscripts dpkg-dev git wget dkms
rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb
@ -29,7 +29,7 @@ dpdk (16.07-0ubuntu5~u1604+fuel10) xenial; urgency=low
EOF
# copy from debian/control
sudo apt-get install -y debhelper \
sudo apt-get install -y --force-yes debhelper \
dh-python \
dh-systemd \
doxygen \
@ -46,12 +46,12 @@ sudo apt-get install -y debhelper \
debian/rules build; fakeroot debian/rules binary
cd ${BUILD_HOME}
sudo apt-get install -y hwdata
sudo apt-get install -y --force-yes hwdata
sudo dpkg -i *.deb
mv *.deb ${BUILD_DEST}
# copy from debian/control
sudo apt-get install -y autoconf \
sudo apt-get install -y --force-yes autoconf \
automake \
bzip2 \
debhelper \

View File

@ -10,7 +10,7 @@ BUILD_HOME=${BUILD_HOME:-/tmp/ovs-dpdk}
export DEB_BUILD_OPTIONS='parallel=8 nocheck'
sudo apt-get -y install devscripts dpkg-dev git wget dkms
sudo apt-get -y --force-yes install devscripts dpkg-dev git wget dkms
rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb
@ -29,7 +29,7 @@ dpdk (16.07-0ubuntu5~u1604+fuel10) xenial; urgency=low
EOF
# copy from debian/control
sudo apt-get install -y debhelper \
sudo apt-get install -y --force-yes debhelper \
dh-python \
dh-systemd \
doxygen \
@ -46,12 +46,12 @@ sudo apt-get install -y debhelper \
debian/rules build; fakeroot debian/rules binary
cd ${BUILD_HOME}
sudo apt-get install -y hwdata
sudo apt-get install -y --force-yes hwdata
sudo dpkg -i *.deb
mv *.deb ${BUILD_DEST}
# copy from debian/control
sudo apt-get install -y autoconf \
sudo apt-get install -y --force-yes autoconf \
automake \
bzip2 \
debhelper \