commit: 40b99fb93f0cbc80083a72e23e93da4bafb365fb
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 31 01:02:44 2015 +0000
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Thu Dec 31 01:02:47 2015 +0000
URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=40b99fb9
module.py: fixes bug where the module_spec module name was not used
This only showed up when the module's target name (filename) was not the
same as the modules initialization name.
layman/module.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layman/module.py b/layman/module.py
index 6d7a40b..99d243b 100644
--- a/layman/module.py
+++ b/layman/module.py
@@ -48,7 +48,7 @@ class Module(object):
for submodule in self.module_spec['provides']:
kid = self.module_spec['provides'][submodule]
kidname = kid['name']
- kid['module_name'] = '.'.join([mod_name, self.name])
+ kid['module_name'] = '.'.join([mod_name, kidname])
kid['is_imported'] = False
self.kids[kidname] = kid
self.kids_names.append(kidname)