From 188d6cc00de8ad2493b7d919ed4cd1250464ef28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 7 Sep 2020 19:05:33 +0200 Subject: sys-apps/personal-utils: emergefix update portage automatically --- sys-apps/personal-utils/files/emergefix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys-apps/personal-utils/files/emergefix') diff --git a/sys-apps/personal-utils/files/emergefix b/sys-apps/personal-utils/files/emergefix index bcec51d..a60e94e 100755 --- a/sys-apps/personal-utils/files/emergefix +++ b/sys-apps/personal-utils/files/emergefix @@ -14,6 +14,11 @@ run() { ################################################################################# +if [ "$(equery -q l -I -o sys-apps/portage)" != "$(equery -q l sys-apps/portage)" ]; then + step "Update portage" + run emerge -1 sys-apps/portage +fi + step "Update packages" run emerge -auDU --with-bdeps=y --keep-going @world "$@" -- cgit v1.2.3