From 6aa6d912aef5ba6797f3663d0305bf1fdc6d2fae Mon Sep 17 00:00:00 2001 From: Elias Probst Date: Fri, 20 Sep 2013 01:41:31 +0200 Subject: [PATCH] [gentoo] make use of 'eix' where available. --- bootstrap-salt.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 377f1c6..5a1513d 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -2779,9 +2779,17 @@ __emerge() { __gentoo_pre_dep() { if [ $_ECHO_DEBUG -eq $BS_TRUE ]; then - emerge --sync + if which eix &> /dev/null; then + eix-sync + else + emerge --sync + fi else - emerge --sync --quiet + if which eix &> /dev/null; then + eix-sync -q + else + emerge --sync --quiet + fi fi if [ ! -d /etc/portage ]; then mkdir /etc/portage