From 96a9df7d8a12de25e5086157cd406f99a9f03e44 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sat, 8 Feb 2014 03:45:08 +0000 Subject: [PATCH] Only upgrade pacakges, don't reinstall unless newwer. --- bootstrap-salt.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 6c1b532..5efc48f 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -2250,10 +2250,10 @@ _eof install_arch_linux_git_deps() { install_arch_linux_stable_deps - pacman -Sy --noconfirm pacman || return 1 + pacman -Sy --noconfirm --needed pacman || return 1 # Don't fail if un-installing python2-distribute threw an error - pacman -R --noconfirm python2-distribute - pacman -Sy --noconfirm git python2-crypto python2-setuptools \ + pacman -R --noconfirm --needed python2-distribute + pacman -Sy --noconfirm --needed git python2-crypto python2-setuptools \ python2-jinja python2-m2crypto python2-markupsafe python2-msgpack \ python2-psutil python2-yaml python2-pyzmq zeromq || return 1 @@ -2269,11 +2269,11 @@ install_arch_linux_git_deps() { } install_arch_linux_stable() { - pacman -Sy --noconfirm pacman || return 1 + pacman -Sy --noconfirm --needed pacman || return 1 # See https://mailman.archlinux.org/pipermail/arch-dev-public/2013-June/025043.html # to know why we're ignoring below. pacman -Syu --noconfirm --ignore filesystem,bash || return 1 - pacman -S --noconfirm bash || return 1 + pacman -S --noconfirm --needed bash || return 1 pacman -Su --noconfirm || return 1 # We can now resume regular salt update pacman -Syu --noconfirm salt || return 1