From 350fb5dc03482959cd2f853ee0efa2b99627111e Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 2 Apr 2020 12:49:54 +0200 Subject: [PATCH] Update apt cache before running builds Otherwise it might fail if the repositories have changed since the image was generated. --- .travis/bionic/build.sh | 1 + .travis/xenial/build.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/.travis/bionic/build.sh b/.travis/bionic/build.sh index 92434476..fbaae81e 100755 --- a/.travis/bionic/build.sh +++ b/.travis/bionic/build.sh @@ -49,6 +49,7 @@ docker run --volume ${CURDIR}/build:/home/deb/build --interactive --tty --rm tig cp -a ~/build/debian ~/build/tigervnc-${VERSION}/debian && mk-build-deps ~/build/tigervnc-${VERSION}/debian/control && sudo dpkg --unpack ~/tigervnc-build-deps_*.deb && + sudo apt-get update && sudo apt-get -f install -y && cd ~/build/tigervnc-${VERSION} && dpkg-buildpackage " diff --git a/.travis/xenial/build.sh b/.travis/xenial/build.sh index 5c140f9d..b3da6f9b 100755 --- a/.travis/xenial/build.sh +++ b/.travis/xenial/build.sh @@ -49,6 +49,7 @@ docker run --volume ${CURDIR}/build:/home/deb/build --interactive --tty --rm tig cp -a ~/build/debian ~/build/tigervnc-${VERSION}/debian && mk-build-deps ~/build/tigervnc-${VERSION}/debian/control && sudo dpkg --unpack ~/tigervnc-build-deps_*.deb && + sudo apt-get update && sudo apt-get -f install -y && cd ~/build/tigervnc-${VERSION} && dpkg-buildpackage " -- 2.39.5