diff options
-rwxr-xr-x | portage-update.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/portage-update.sh b/portage-update.sh index 17c68b6..7c92bbd 100755 --- a/portage-update.sh +++ b/portage-update.sh @@ -58,6 +58,13 @@ if [ -z ${SKIP_UPDATE+x} ]; then emerge --keep-going -av --update --newuse --deep --with-bdeps=y @world || exit 1 fi +# Update -9999 packages since they aren't included in a @world update +pkgs9999=$(find /var/db/pkg/ -mindepth 2 -maxdepth 2 -name '*-9999') +if [ "$pkgs9999" != "" ] ; then + echo "emerge -av $(find /var/db/pkg/ -mindepth 2 -maxdepth 2 -name '*-9999' | tr '\n' ' ' | sed 's|/var/db/pkg/|=|g')" + emerge -av $(find /var/db/pkg/ -mindepth 2 -maxdepth 2 -name '*-9999' | tr '\n' ' ' | sed 's|/var/db/pkg/|=|g') +fi + # Remove unnecessary dependencies, unless skipped if [ -z ${SKIP_DEPCLEAN+x} ]; then echo 'emerge -av --depclean' |