Gentoo Archives: gentoo-commits

From: Devan Franchini <twitch153@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/layman:master commit in: layman/
Date: Thu, 31 Dec 2015 01:03:30
Message-Id: 1451523767.40b99fb93f0cbc80083a72e23e93da4bafb365fb.twitch153@gentoo
1 commit: 40b99fb93f0cbc80083a72e23e93da4bafb365fb
2 Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 31 01:02:44 2015 +0000
4 Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 31 01:02:47 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=40b99fb9
7
8 module.py: fixes bug where the module_spec module name was not used
9
10 This only showed up when the module's target name (filename) was not the
11 same as the modules initialization name.
12
13 layman/module.py | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/layman/module.py b/layman/module.py
17 index 6d7a40b..99d243b 100644
18 --- a/layman/module.py
19 +++ b/layman/module.py
20 @@ -48,7 +48,7 @@ class Module(object):
21 for submodule in self.module_spec['provides']:
22 kid = self.module_spec['provides'][submodule]
23 kidname = kid['name']
24 - kid['module_name'] = '.'.join([mod_name, self.name])
25 + kid['module_name'] = '.'.join([mod_name, kidname])
26 kid['is_imported'] = False
27 self.kids[kidname] = kid
28 self.kids_names.append(kidname)