Indents updated.

This commit is contained in:
Kolan Sh 2014-02-11 16:26:05 +04:00
parent 7b48de3ba9
commit 4d0987f6f1
1 changed files with 39 additions and 39 deletions

View File

@ -138,58 +138,58 @@ if [ $STAGE_CNT -eq $STAGE ]; then
done done
fi fi
# layman syncronization # layman syncronization
if [ `which layman 2>/dev/null` ]; then if [ `which layman 2>/dev/null` ]; then
$NICE_CMD layman -S $NICE_CMD layman -S
[ 0 -ne $? ] && echo "Stage $STAGE: layman synchronization failed ;-( =======" && exit $STAGE [ 0 -ne $? ] && echo "Stage $STAGE: layman synchronization failed ;-( =======" && exit $STAGE
fi fi
# sync portage tree # sync portage tree
$NICE_CMD eix-sync || $NICE_CMD emerge --sync $NICE_CMD eix-sync || $NICE_CMD emerge --sync
[ 0 -ne $? ] && echo "Stage $STAGE: portage tree synchronization failed ;-( =======" && exit $STAGE [ 0 -ne $? ] && echo "Stage $STAGE: portage tree synchronization failed ;-( =======" && exit $STAGE
# Update metadata cache # Update metadata cache
in_list "$EGENCACHE" ${TRUE_LIST[@]} && in_list "$EGENCACHE" ${TRUE_LIST[@]} &&
if [[ "git" == "$SYNC_TYPE" ]]; then if [[ "git" == "$SYNC_TYPE" ]]; then
echo "---------- Updating metadata cache for Git portage tree ----------" echo "---------- Updating metadata cache for Git portage tree ----------"
$NICE_CMD egencache --repo=gentoo --update --jobs=$((`getconf _NPROCESSORS_ONLN`+1)) $NICE_CMD egencache --repo=gentoo --update --jobs=$((`getconf _NPROCESSORS_ONLN`+1))
[ 0 -ne $? ] && echo "Stage $STAGE: Metadata update failed ;-( =======" && exit $STAGE [ 0 -ne $? ] && echo "Stage $STAGE: Metadata update failed ;-( =======" && exit $STAGE
fi
# clear exclude list
if [ "rsync" == "$SYNC_TYPE" ]; then
echo -n > /etc/portage/rsync.excludes
[ 0 -ne $? ] && echo "Stage $STAGE: failed to clear /etc/portage/rsync.excludes ;-( =======" && exit $STAGE
fi fi
# eix-remote update # clear exclude list
if [ `which eix-remote 2>/dev/null` ]; then if [ "rsync" == "$SYNC_TYPE" ]; then
$NICE_CMD eix-remote update echo -n > /etc/portage/rsync.excludes
[ 0 -ne $? ] && echo "Stage $STAGE: 1'st eix-remote update failed ;-( =======" && exit $STAGE [ 0 -ne $? ] && echo "Stage $STAGE: failed to clear /etc/portage/rsync.excludes ;-( =======" && exit $STAGE
fi fi
# eix update # eix-remote update
if [ `which eix-update 2>/dev/null` ]; then if [ `which eix-remote 2>/dev/null` ]; then
$NICE_CMD eix-update $NICE_CMD eix-remote update
[ 0 -ne $? ] && echo "Stage $STAGE: eix-update failed ;-( =======" && exit $STAGE [ 0 -ne $? ] && echo "Stage $STAGE: 1'st eix-remote update failed ;-( =======" && exit $STAGE
fi fi
# eix-remote update # eix update
if [ `which eix-remote 2>/dev/null` ]; then if [ `which eix-update 2>/dev/null` ]; then
$NICE_CMD eix-remote update $NICE_CMD eix-update
[ 0 -ne $? ] && echo "Stage $STAGE: 2'nd eix-remote update failed ;-( =======" && exit $STAGE [ 0 -ne $? ] && echo "Stage $STAGE: eix-update failed ;-( =======" && exit $STAGE
fi fi
# remind to upgrade Xorg input drivers # eix-remote update
tmp=`qlist -IC x11-base/xorg-server` if [ `which eix-remote 2>/dev/null` ]; then
if [ "" != "$tmp" ]; then $NICE_CMD eix-remote update
if [ "0" -ne "`emerge -uNp x11-base/xorg-server 2>&1 | grep '^\[' | wc -l`" ]; then [ 0 -ne $? ] && echo "Stage $STAGE: 2'nd eix-remote update failed ;-( =======" && exit $STAGE
touch /etc/portage/need_upgrade_xorg_input_drivers fi
[ 0 -ne $? ] && echo "Stage $STAGE: cann't touch /etc/portage/need_upgrade_xorg_input_drivers ;-( =======" && exit $STAGE
fi
fi
let STAGE++ # remind to upgrade Xorg input drivers
tmp=`qlist -IC x11-base/xorg-server`
if [ "" != "$tmp" ]; then
if [ "0" -ne "`emerge -uNp x11-base/xorg-server 2>&1 | grep '^\[' | wc -l`" ]; then
touch /etc/portage/need_upgrade_xorg_input_drivers
[ 0 -ne $? ] && echo "Stage $STAGE: cann't touch /etc/portage/need_upgrade_xorg_input_drivers ;-( =======" && exit $STAGE
fi
fi
let STAGE++
# recreate portage squashfs files # recreate portage squashfs files
if [[ -x /etc/init.d/squash_portage && "" != "`mount | grep '^aufs' | grep $PORTDIR`" ]]; then if [[ -x /etc/init.d/squash_portage && "" != "`mount | grep '^aufs' | grep $PORTDIR`" ]]; then