From 3309f6c3d9fae054c5ab8c28e1710e132efa301d Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Wed, 10 Oct 2012 21:03:45 +0400 Subject: [PATCH] layman sync before eix-update --- sbin/gentoo-upgrade.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sbin/gentoo-upgrade.sh b/sbin/gentoo-upgrade.sh index 5f32a1d..a1ccce1 100755 --- a/sbin/gentoo-upgrade.sh +++ b/sbin/gentoo-upgrade.sh @@ -135,6 +135,12 @@ if [ $STAGE_CNT -eq $STAGE ]; then [ 0 -ne $? ] && echo "Stage $STAGE: failed to clear /etc/portage/rsync.excludes ;-( =======" && exit $STAGE fi + # layman syncronization + if [ `which layman 2>/dev/null` ]; then + $NICE_CMD layman -S + [ 0 -ne $? ] && echo "Stage $STAGE: layman synchronization failed ;-( =======" && exit $STAGE + fi + # eix update if [ `which eix-update 2>/dev/null` ]; then $NICE_CMD eix-update @@ -147,12 +153,6 @@ if [ $STAGE_CNT -eq $STAGE ]; then [ 0 -ne $? ] && echo "Stage $STAGE: eix-remote update failed ;-( =======" && exit $STAGE fi - # layman syncronization - if [ `which layman 2>/dev/null` ]; then - $NICE_CMD layman -S - [ 0 -ne $? ] && echo "Stage $STAGE: layman synchronization failed ;-( =======" && exit $STAGE - fi - # remind to upgrade Xorg input drivers tmp=`qlist -IC x11-base/xorg-server` if [ "" != "$tmp" ]; then