[script/post-update] calling emerge-webrsync before invoking emerge, and cleanup after

This commit is contained in:
mudler
2015-11-16 18:55:31 +01:00
parent c83817bda0
commit c0d736ccb8
+4 -1
View File
@@ -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 && \