From c0d736ccb85b351ddbd8a4b76fa726f03eaabfbe Mon Sep 17 00:00:00 2001 From: mudler Date: Mon, 16 Nov 2015 18:55:31 +0100 Subject: [PATCH] [script/post-update] calling emerge-webrsync before invoking emerge, and cleanup after --- script/post-update.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/post-update.sh b/script/post-update.sh index ae2e7eb..2884ba9 100644 --- a/script/post-update.sh +++ b/script/post-update.sh @@ -109,9 +109,12 @@ FILES_TO_REMOVE=( # emerge preserved rebuild that are left behind in the next stages. this happens because first stage isn't automated (yet) and the next one that regenerate locales # is run in dockerhub (which is really slow and prone to fails) instead of circleci +emerge-webrsync emerge @preserved-rebuild equo rescue spmsync - +pushd /usr/portage/ +ls | grep -v 'profiles' | grep -v 'metadata' | xargs rm -rf +popd # Upgrading packages rsync -av "rsync://rsync.at.gentoo.org/gentoo-portage/licenses/" "/usr/portage/licenses/" && ls /usr/portage/licenses -1 | xargs -0 > /etc/entropy/packages/license.accept && \ equo up && equo u && \