# HG changeset patch # User Waqas Hussain # Date 1289400878 -18000 # Node ID bbeba9f2acf8c91bcf4f821914daa614b8e46720 # Parent ec1151d0c4a432d6c6f2082b26296bbf97df10ed modulemanager: load_modules_for_host(): For components, the inherited modules are the intersection of the inheritable and global modules lists, not the difference. diff -r ec1151d0c4a4 -r bbeba9f2acf8 core/modulemanager.lua --- a/core/modulemanager.lua Wed Nov 10 18:06:51 2010 +0500 +++ b/core/modulemanager.lua Wed Nov 10 19:54:38 2010 +0500 @@ -73,7 +73,7 @@ local host_modules = set.new(host_modules_enabled) - set.new(host_modules_disabled); local global_modules = set.new(autoload_modules) + set.new(global_modules_enabled) - set.new(global_modules_disabled); if component then - global_modules = set.new(component_inheritable_modules) - global_modules; + global_modules = set.intersection(set.new(component_inheritable_modules), global_modules); end local modules = global_modules + host_modules;