Upgrading live packages stage.

This commit is contained in:
Kolan Sh 2012-11-25 00:52:51 +04:00
parent 3da7ef77b3
commit b34ea829ca
1 changed files with 10 additions and 1 deletions

View File

@ -369,7 +369,6 @@ if [ $STAGE_CNT -eq $STAGE ]; then
echo 'Looking for necessity to upgrade @world packages...'
emerge -uDNqv @world
[ 0 -ne $? ] && echo "Stage $STAGE: @world upgrade failed ;-( =======" && exit $STAGE
echo '------- Scanning for missed shared libraries -------'
let STAGE++
fi
@ -395,6 +394,16 @@ if [ $STAGE_CNT -eq $STAGE ]; then
fi
let STAGE_CNT++
# Upgrading live packages
if [ $STAGE_CNT -eq $STAGE ]; then
echo "======= STAGE $STAGE: Upgrading live packages ======="
smart-live-rebuild
[ 0 -ne $? ] && echo "Stage $STAGE: Upgrading live packages failed ;-( =======" && exit $STAGE
let STAGE++
fi
let STAGE_CNT++
# Cleaning
if [ $STAGE_CNT -eq $STAGE ]; then
echo "======= STAGE $STAGE: Cleaning ======="