Rebuild preserved packages if needed

This commit is contained in:
Alarig Le Lay 2018-05-15 10:07:32 +02:00
parent 646f1390c1
commit 15175fb0a5
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@ if [ "$(grep '\[ebuild U' ${TMP_FILE})" != '' ]; then
if [ "$(lsof -n | awk '{ if ($5 == "DEL") print $9 }' | sort -u)" ]; then
restart-services --no-color >> ${MAIL}
fi
if ! [ -z "$(grep -v '{}' /var/lib/portage/preserved_libs_registry)" ]; then
emerge -v @preserved-rebuild
fi
emerge -p --depclean --with-bdeps\=y >> ${MAIL}
eix-test-obsolete \