From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1AD7E1388BF for ; Wed, 6 Jan 2016 04:22:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BEE2321C002; Wed, 6 Jan 2016 04:21:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 01E4E21C001 for ; Wed, 6 Jan 2016 04:21:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 32221340A4A for ; Wed, 6 Jan 2016 04:21:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7BB43D02 for ; Wed, 6 Jan 2016 04:21:51 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1452053302.e644cc33ab94e0465eba5ec8032e7cb070cb5f83.dolsen@gentoo> Subject: [gentoo-commits] proj/portage:repoman commit in: pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/scanner.py X-VCS-Directories: pym/repoman/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: e644cc33ab94e0465eba5ec8032e7cb070cb5f83 X-VCS-Branch: repoman Date: Wed, 6 Jan 2016 04:21:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c3eb8e51-63e3-4312-aebc-36cbae7aa826 X-Archives-Hash: 8e05332f600349ef47aef299abe240c3 commit: e644cc33ab94e0465eba5ec8032e7cb070cb5f83 Author: Brian Dolbec gentoo org> AuthorDate: Sun Jan 3 18:27:42 2016 +0000 Commit: Brian Dolbec gentoo 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)