From 193ec74d7968fd36d24a6254085379eee24e3b7d Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Wed, 28 Sep 2011 16:46:28 +0200 Subject: [PATCH] Run upgrade before dist-upgrade. --- src/functions.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/functions.sh b/src/functions.sh index 26d4014..28d229a 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -146,6 +146,12 @@ apt_download() { } dist_upgrade () { + log "Running upgrade ..." + apt-get -y$s upgrade || { + dpkg --configure -a + apt-get -y$s upgrade + } + log "Running dist-upgrade ..." apt-get -y$s dist-upgrade || { dpkg --configure -a -- 1.7.10.4