Automatic pull remote changes for Portage config.

This commit is contained in:
Kolan Sh 2012-10-10 20:58:04 +04:00
parent 5cb93b0d41
commit 8673d15831
1 changed files with 11 additions and 0 deletions

View File

@ -59,6 +59,17 @@ if [ $STAGE_CNT -eq $STAGE ]; then
fi
let STAGE_CNT++
# Pull portage config changes
if [ $STAGE_CNT -eq $STAGE ]; then
echo "======= STAGE $STAGE: pull portage config changes ======="
[ -d /etc/portage/.git ] && cd /etc/portage && git pull
[ 0 -ne $? ] && echo "Stage $STAGE: cd /etc/portage && git pull failed ;-( =======" && exit $STAGE
let STAGE++
fi
let STAGE_CNT++
# sync portage tree
if [ $STAGE_CNT -eq $STAGE ]; then
echo "======= STAGE $STAGE: sync portage tree ======="