[Lunar-commits] <moonbase> perl: added logic to rebuild vim too

Duncan Gibson engelsman at lunar-linux.org
Mon Apr 25 21:43:01 CEST 2011


commit fff2d531e0c377edab813a9c1d37b5fc9db34686
Author: Christian Krause <kizkizzbangbang at googlemail.com>
Date:   Mon Apr 25 21:43:01 2011 +0200

    perl: added logic to rebuild vim too
---
 perl/perl/POST_INSTALL |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/perl/perl/POST_INSTALL b/perl/perl/POST_INSTALL
index 4494c97..4c27a5b 100644
--- a/perl/perl/POST_INSTALL
+++ b/perl/perl/POST_INSTALL
@@ -25,7 +25,10 @@ message "$MESSAGE_COLOR"
 message "Remember to re-install all CPAN modules by hand!"
 message "$DEFAULT_COLOR"
 
-# Reinstall vim otherwise it will stop working
-if module_installed vim; then
-lin -c vim
+# re-lin vim if perl support there has been enabled, otherwise it will stop working
+if module_installed vim ; then
+  if in_depends vim perl ; then
+    verbose_msg "Rebuilding vim ..."
+    lin -c vim
+  fi
 fi


More information about the Lunar-commits mailing list