From 699cd870da11214c814212fdce27ec6b21998719 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Thu, 7 Aug 2014 21:18:24 +0400 Subject: [PATCH] Workaround for UnicodeDecodeError. UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2: ordinal not in range(128) --- sbin/gentoo-upgrade.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/gentoo-upgrade.sh b/sbin/gentoo-upgrade.sh index c670ee8..d940ac1 100755 --- a/sbin/gentoo-upgrade.sh +++ b/sbin/gentoo-upgrade.sh @@ -363,7 +363,7 @@ if [ $STAGE_CNT -eq $STAGE ]; then fi echo '------- Upgrading Python package -------' - emerge -uDNvt --with-bdeps=y python + emerge -uDNvtq --with-bdeps=y python [ 0 -ne $? ] && echo "Stage $STAGE: Python upgrade failed ;-( =======" && exit $STAGE available_python_list=`eselect python list | cut -d" " -f6 | grep -v ^$ | sort -rV` @@ -405,7 +405,7 @@ if [ $STAGE_CNT -eq $STAGE ]; then echo "======= STAGE $STAGE: @system upgrade =======" echo '------- Upgrading @system packages -------' - emerge -uDNvt --with-bdeps=y @system + emerge -uDNvtq --with-bdeps=y @system [ 0 -ne $? ] && echo "Stage $STAGE: @system upgrade failed ;-( =======" && exit $STAGE let STAGE++ @@ -452,7 +452,7 @@ let STAGE_CNT++ if [ $STAGE_CNT -eq $STAGE ]; then echo "======= STAGE $STAGE: @world upgrade =======" echo 'Looking for necessity to upgrade @world packages...' - emerge -uDNvt --with-bdeps=y @world + emerge -uDNvtq --with-bdeps=y @world [ 0 -ne $? ] && echo "Stage $STAGE: @world upgrade failed ;-( =======" && exit $STAGE let STAGE++