From 6da19d5e00d8107d8637c0ee79d625eaee79cc6f Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Mon, 3 Dec 2012 13:50:15 +0400 Subject: [PATCH] More rigorous and fast eclean distfiles/packages. --- sbin/gentoo-upgrade.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/gentoo-upgrade.sh b/sbin/gentoo-upgrade.sh index b3d2023..efdb4f8 100755 --- a/sbin/gentoo-upgrade.sh +++ b/sbin/gentoo-upgrade.sh @@ -414,13 +414,13 @@ if [ $STAGE_CNT -eq $STAGE ]; then [ 0 -ne $? ] && echo "Stage $STAGE: localepurge failed ;-( =======" && exit $STAGE fi if [ `which eclean 2>/dev/null` ]; then - $NICE_CMD eclean packages - [ 0 -ne $? ] && echo "Stage $STAGE: eclean packages failed ;-( =======" && exit $STAGE + $NICE_CMD eclean -d packages + [ 0 -ne $? ] && echo "Stage $STAGE: eclean -d packages failed ;-( =======" && exit $STAGE in_list "$ECLEAN_DISTFILES" ${TRUE_LIST[@]} if [ 0 -eq $? ]; then - $NICE_CMD eclean distfiles - [ 0 -ne $? ] && echo "Stage $STAGE: eclean distfiles failed ;-( =======" && exit $STAGE + $NICE_CMD eclean -d distfiles + [ 0 -ne $? ] && echo "Stage $STAGE: eclean -d distfiles failed ;-( =======" && exit $STAGE fi fi rm -rf /var/tmp/portage/*