From 64c8fc77805126b7a6b1bcfbd1f730c41628cfb3 Mon Sep 17 00:00:00 2001 From: Tobias Klaus Date: Thu, 8 Feb 2018 13:55:32 +0100 Subject: [PATCH] gentooup: install portage update prior to all others * only if available * wait for eix-update --- gentooup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gentooup.sh b/gentooup.sh index 395293f..2af6bc0 100755 --- a/gentooup.sh +++ b/gentooup.sh @@ -42,7 +42,12 @@ fi #any parameter prevents syncing if [[ ! -z ${SYNC_COMMAND} ]] ; then ${SYNC_COMMAND} - eix-update >& /dev/null & + eix-update >& /dev/null +fi + +if eix -u -# sys-apps/portage > /dev/null ; then + echo "portage update detected -> merging it" + emerge -v1 portage fi echo "emerge options: ${PORTAGE_OPTIONS[*]}"