Upgrade perl/haskell only if installed.

This commit is contained in:
Kolan Sh 2013-01-13 16:39:32 +04:00
parent 578180c563
commit f986b05dee
1 changed files with 4 additions and 2 deletions

View File

@ -328,12 +328,14 @@ if [ $STAGE_CNT -eq $STAGE ]; then
fi fi
echo 'Test and remember if we should run perl-cleaner after @system upgrade' echo 'Test and remember if we should run perl-cleaner after @system upgrade'
if [ 0 -ne `emerge -uNp dev-lang/perl 2>&1 | grep '^\[' | wc -l` ]; then if [[ 0 -ne `qlist -IC dev-lang/perl | wc -l`
&& 0 -ne `emerge -uNp dev-lang/perl 2>&1 | grep '^\[' | wc -l` ]]; then
touch /etc/portage/need_upgrade_perl touch /etc/portage/need_upgrade_perl
fi fi
echo 'Test and remember if we should run haskell-updater after @system upgrade' echo 'Test and remember if we should run haskell-updater after @system upgrade'
if [ 0 -ne `emerge -uNp dev-lang/ghc 2>&1 | grep '^\[' | wc -l` ]; then if [[ 0 -ne `qlist -IC dev-lang/ghc | wc -l`
&& 0 -ne `emerge -uNp dev-lang/ghc 2>&1 | grep '^\[' | wc -l` ]]; then
touch /etc/portage/need_upgrade_haskell touch /etc/portage/need_upgrade_haskell
fi fi