[Lunar-commits] <lunar> plugins.lunar: Always reload plugins when installed/removed/updated

Stefan Wold ratler at lunar-linux.org
Mon Feb 8 20:25:24 CET 2010


commit 990441e14bccc6ad0189e573916d9029452bf600
Author: Stefan Wold <ratler at lunar-linux.org>
Date:   Mon Feb 8 20:25:24 2010 +0100

    plugins.lunar: Always reload plugins when installed/removed/updated
    
    Thanks sofar for spotting that one :)
---
 var/lib/lunar/functions/plugins.lunar |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/var/lib/lunar/functions/plugins.lunar b/var/lib/lunar/functions/plugins.lunar
index d31c6e2..77640e9 100644
--- a/var/lib/lunar/functions/plugins.lunar
+++ b/var/lib/lunar/functions/plugins.lunar
@@ -85,7 +85,6 @@ update_plugin() {
 				for PLUGIN in $MOONBASE/$SECTION/$1/plugin.d/*.plugin; do
 					debug_msg "Installed \"$(basename $PLUGIN)\""
 					install -m644 $PLUGIN $PLUGIN_DIR/
-					reload_plugins
 				done
 			elif [ "$2" == "remove" ] || ! module_installed $1 ; then
 				for PLUGIN in $MOONBASE/$SECTION/$1/plugin.d/*.plugin; do
@@ -99,6 +98,7 @@ update_plugin() {
 				done
 			fi
 		fi
+		reload_plugins
 	fi
 }
 


More information about the Lunar-commits mailing list