Run upgrade before dist-upgrade.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Wed, 28 Sep 2011 14:46:28 +0000 (16:46 +0200)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Wed, 28 Sep 2011 14:46:28 +0000 (16:46 +0200)
src/functions.sh

index 26d4014..28d229a 100644 (file)
@@ -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