summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-03-13 12:56:25 +0000
committerLuke Bratch <luke@bratch.co.uk>2019-03-13 12:56:25 +0000
commit44b755e788dd7ba8d46848def865e9da8cd950f5 (patch)
treeed5972d2651a53fb6d72b9a76491e4ecdd0d9556
parentcdef569d0555fdfbd3354ebc8a95fe404a381d08 (diff)
Always remerge *-9999 packages since they don't get updated by a @world update
-rwxr-xr-xportage-update.sh7
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'