Automatic pull remote changes for Portage config.
This commit is contained in:
parent
5cb93b0d41
commit
8673d15831
|
@ -59,6 +59,17 @@ if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
fi
|
fi
|
||||||
let STAGE_CNT++
|
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
|
# sync portage tree
|
||||||
if [ $STAGE_CNT -eq $STAGE ]; then
|
if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
echo "======= STAGE $STAGE: sync portage tree ======="
|
echo "======= STAGE $STAGE: sync portage tree ======="
|
||||||
|
|
Loading…
Reference in New Issue