# HG changeset patch # User Matthew Wild # Date 1335420299 -3600 # Node ID d8fc9a1aabeba57bbbb33df6f7f639b970439180 # Parent 845393c76d17e2c0b63a9256511df36c23d00313 moduleapi: module:depends(): Don't load shared modules onto the current host if the current host is '*'... diff -r 845393c76d17 -r d8fc9a1aabeb core/moduleapi.lua --- a/core/moduleapi.lua Thu Apr 26 06:58:57 2012 +0100 +++ b/core/moduleapi.lua Thu Apr 26 07:04:59 2012 +0100 @@ -124,7 +124,8 @@ end); end local mod = modulemanager.get_module(self.host, name) or modulemanager.get_module("*", name); - if mod and mod.module.host == "*" and modulemanager.module_has_method(mod, "add_host") then + if mod and mod.module.host == "*" and self.host ~= "*" + and modulemanager.module_has_method(mod, "add_host") then mod = nil; -- This is a shared module, so we still want to load it on our host end if not mod then