commit: e644cc33ab94e0465eba5ec8032e7cb070cb5f83 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Sun Jan 3 18:27:42 2016 +0000 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> CommitDate: Wed Jan 6 04:08:22 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=e644cc33
scanner.py: Rename emodules back to modules Need this for classes that span both with functions to run in both pkg and ebuilds levels. pym/repoman/scanner.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pym/repoman/scanner.py b/pym/repoman/scanner.py index 295d35e..a6a89eb 100644 --- a/pym/repoman/scanner.py +++ b/pym/repoman/scanner.py @@ -301,9 +301,10 @@ class Scanner(object): ('thirdpartymirrors', 'ThirdPartyMirrors'), ('description', 'DescriptionChecks'), ]: - mod_class = MODULE_CONTROLLER.get_class(mod[0]) - print("Initializing class name:", mod_class.__name__) - self.modules[mod[1]] = mod_class(**self.kwargs) + if mod[0]: + mod_class = MODULE_CONTROLLER.get_class(mod[0]) + print("Initializing class name:", mod_class.__name__) + self.modules[mod[1]] = mod_class(**self.kwargs) print("scan_ebuilds: module:", mod[1]) do_it, functions = self.modules[mod[1]].runInEbuilds # print("do_it", do_it, "functions", functions)