Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
2021-04-11 01:33:00 +02:00
parent 9d2c961b3b
commit 232263763b
4 changed files with 33 additions and 22 deletions

View File

@ -1,2 +1,9 @@
#!/bin/bash
for i in /usr/repos/*/.git; do ( echo $i; cd $i/..; sudo git pull; ); done
if [ -e /etc/portage/make.conf ]; then
. /etc/portage/make.conf
if [ ! -d $PORTDIR/metadata/md5-cache -o -d $PORTDIR/.git ]; then
echo "updating metadata cache ..."
egencache --repo=gentoo --update
fi
fi