Faster system upgrading.
This commit is contained in:
parent
0483374372
commit
56c3d133db
|
@ -271,14 +271,9 @@ if [ 10 -eq $STAGE ]; then
|
||||||
touch /etc/portage/need_upgrade_python
|
touch /etc/portage/need_upgrade_python
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo 'Looking for necessity to upgrade @system packages...'
|
|
||||||
if [ `emerge -uDNp --with-bdeps=y @system 2>&1 | grep '^\[' | wc -l` != 0 ]; then
|
|
||||||
echo '------- Upgrading @system packages -------'
|
echo '------- Upgrading @system packages -------'
|
||||||
emerge -uDNqv --with-bdeps=y @system
|
emerge -uDNqv --with-bdeps=y @system
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: @system upgrade failed ;-( =======" && exit $STAGE
|
[ 0 -ne $? ] && echo "Stage $STAGE: @system upgrade failed ;-( =======" && exit $STAGE
|
||||||
else
|
|
||||||
echo '------- No @system packages to upgrade! -------'
|
|
||||||
fi
|
|
||||||
|
|
||||||
let STAGE++
|
let STAGE++
|
||||||
fi
|
fi
|
||||||
|
@ -322,14 +317,9 @@ fi
|
||||||
if [ 12 -eq $STAGE ]; then
|
if [ 12 -eq $STAGE ]; then
|
||||||
echo "======= STAGE $STAGE: @world upgrade ======="
|
echo "======= STAGE $STAGE: @world upgrade ======="
|
||||||
echo 'Looking for necessity to upgrade @world packages...'
|
echo 'Looking for necessity to upgrade @world packages...'
|
||||||
if [ `emerge -uDNp --with-bdeps=y @world 2>&1 | grep '^\[' | wc -l` != 0 ]; then
|
|
||||||
echo '------- Upgrading @world packages -------'
|
|
||||||
emerge -uDNqv --with-bdeps=y @world
|
emerge -uDNqv --with-bdeps=y @world
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: @world upgrade failed ;-( =======" && exit $STAGE
|
[ 0 -ne $? ] && echo "Stage $STAGE: @world upgrade failed ;-( =======" && exit $STAGE
|
||||||
echo '------- Scanning for missed shared libraries -------'
|
echo '------- Scanning for missed shared libraries -------'
|
||||||
else
|
|
||||||
echo '------- No @world packages to upgrade! -------'
|
|
||||||
fi
|
|
||||||
|
|
||||||
let STAGE++
|
let STAGE++
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue