Upgrade perl/haskell only if installed.
This commit is contained in:
parent
578180c563
commit
f986b05dee
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue