From 94edd58446930cb7c230c42751c8091d2c931494 Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Mon, 3 Jul 2017 21:38:24 +0200 Subject: [PATCH] add apt update before apt install commands --- build/config | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build/config b/build/config index 975e3b0..5071650 100644 --- a/build/config +++ b/build/config @@ -1,16 +1,19 @@ export LC_ALL=C export DEBIAN_FRONTEND=noninteractive -apt_install='apt-get install -y --no-install-recommends' +apt_install() { + apt-get update + apt-get install -y --no-install-recommends "$@" +} apt_install_permanent() { echo $@ | tr ' ' '\n' >> /build/permanent - $apt_install "$@" + apt_install "$@" } apt_install_temporary() { echo $@ | tr ' ' '\n' >> /build/temporary - $apt_install "$@" + apt_install "$@" } apt_remove() {