Run perl-cleaner after package cleaning.

This commit is contained in:
Kolan Sh 2015-09-11 13:10:07 +03:00
parent 421f1ed418
commit f739dca543
1 changed files with 18 additions and 18 deletions

View File

@ -387,24 +387,6 @@ if [ $STAGE_CNT -eq $STAGE ]; then
fi
let STAGE_CNT++
# Perl upgrade
if [ $STAGE_CNT -eq $STAGE ]; then
echo "======= STAGE $STAGE: Perl upgrade ======="
if [ -f /etc/portage/need_upgrade_perl ]; then
echo "Running perl-cleaner..."
$NICE_CMD perl-cleaner --all
[ 0 != $? ] && echo "Stage $STAGE: perl-cleaner failed ;-( =======" && exit $STAGE
rm /etc/portage/need_upgrade_perl
[ 0 != $? ] && echo "Stage $STAGE: cann't remove /etc/portage/need_upgrade_perl ;-( =======" && exit $STAGE
else
echo "------- Not need to upgrade perl -------"
fi
let STAGE++
fi
let STAGE_CNT++
# Haskell upgrade
if [ $STAGE_CNT -eq $STAGE ]; then
echo "======= STAGE $STAGE: Haskell upgrade ======="
@ -490,6 +472,24 @@ if [ $STAGE_CNT -eq $STAGE ]; then
fi
let STAGE_CNT++
# Perl upgrade
if [ $STAGE_CNT -eq $STAGE ]; then
echo "======= STAGE $STAGE: Perl upgrade ======="
if [ -f /etc/portage/need_upgrade_perl ]; then
echo "Running perl-cleaner..."
$NICE_CMD perl-cleaner --all
[ 0 != $? ] && echo "Stage $STAGE: perl-cleaner failed ;-( =======" && exit $STAGE
rm /etc/portage/need_upgrade_perl
[ 0 != $? ] && echo "Stage $STAGE: cann't remove /etc/portage/need_upgrade_perl ;-( =======" && exit $STAGE
else
echo "------- Not need to upgrade perl -------"
fi
let STAGE++
fi
let STAGE_CNT++
# Scan for missed shared libraries
if [ $STAGE_CNT -eq $STAGE ]; then
echo "======= STAGE $STAGE: Scan for old versions of shared libraries ======="