aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2015-12-30 20:02:44 -0500
committerDevan Franchini <twitch153@gentoo.org>2015-12-30 20:02:47 -0500
commit40b99fb93f0cbc80083a72e23e93da4bafb365fb (patch)
tree75b08e8ee00a0026af0f8bcbc3985e79037bf159
parentremotedb.py: Add climit due to sslfetch API change (diff)
downloadlayman-40b99fb93f0cbc80083a72e23e93da4bafb365fb.tar.gz
layman-40b99fb93f0cbc80083a72e23e93da4bafb365fb.tar.bz2
layman-40b99fb93f0cbc80083a72e23e93da4bafb365fb.zip
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.
-rw-r--r--layman/module.py2
1 files changed, 1 insertions, 1 deletions
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)