Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:repoman commit in: pym/portage/
Date: Wed, 30 Dec 2015 23:38:24
Message-Id: 1451518082.a26821f63c01005cb1e9509051fd44c7c2b08012.dolsen@gentoo
1 commit: a26821f63c01005cb1e9509051fd44c7c2b08012
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 30 23:28:02 2015 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 30 23:28:02 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=a26821f6
7
8 portage/module.py: Fix bug where the module_spec module name was not being used
9
10 This only showed up when the module's target name (filename) was not the same as the
11 modules initialization name.
12
13 pym/portage/module.py | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/pym/portage/module.py b/pym/portage/module.py
17 index 2277e7a..69050aa 100644
18 --- a/pym/portage/module.py
19 +++ b/pym/portage/module.py
20 @@ -46,7 +46,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)