[Lunar-commits] <moonbase> perl: libwww-perl has perl in its name, so was being ignored by the too-simplistic grep.
Florin Braescu
florin at lunar-linux.org
Thu Aug 27 13:28:27 CEST 2009
commit 24daed5a0fab3133e1abecd6b4982e888df8d285
Author: Florin Braescu <florin at lunar-linux.org>
Date: Thu Aug 27 14:28:27 2009 +0300
perl: libwww-perl has perl in its name, so was being ignored by the too-simplistic grep.
Thanks to brebs.
---
perl/perl/POST_INSTALL | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/perl/perl/POST_INSTALL b/perl/perl/POST_INSTALL
index fc11ccd..2401801 100644
--- a/perl/perl/POST_INSTALL
+++ b/perl/perl/POST_INSTALL
@@ -10,9 +10,11 @@ if [ -n "$(get_module_config UPGRADE_PERL_MODULES)" ]; then
if [ ! -f /usr/lib/perl5/$VERSION/CPAN/Config.pm -a -f /usr/lib/perl5/$OLD_PERL_VERSION/CPAN/Config.pm ] ; then
cp /usr/lib/perl5/$OLD_PERL_VERSION/CPAN/Config.pm /usr/lib/perl5/$VERSION/CPAN/Config.pm
fi
- PERLMODS="$( lvu from /usr/lib/perl5/ | cut -d: -f1 | uniq | grep -v perl)"
+ PERLMODS="$( lvu from /usr/lib/perl5/ | cut -d: -f1 | uniq )"
for PERLMOD in $(sort_by_dependency $PERLMODS); do
- lin -c $PERLMOD || true
+ if [[ $PERLMOD != "perl" ]]; then
+ lin -c $PERLMOD || true
+ fi
done
fi
unset_module_config OLD_PERL_VERSION
More information about the Lunar-commits
mailing list