From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 11A73139694 for ; Sat, 15 Jul 2017 02:29:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 01BA01FC003; Sat, 15 Jul 2017 02:29:33 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D528B1FC003 for ; Sat, 15 Jul 2017 02:29:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A8CC43418DE for ; Sat, 15 Jul 2017 02:29:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4DA8B74B7 for ; Sat, 15 Jul 2017 02:29:30 +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: <1500085544.ad4dedb929b147b19b55e0831d3ff52ce0d6f17d.dolsen@gentoo> Subject: [gentoo-commits] proj/portage:repoman commit in: repoman/pym/repoman/modules/scan/ X-VCS-Repository: proj/portage X-VCS-Files: repoman/pym/repoman/modules/scan/module.py X-VCS-Directories: repoman/pym/repoman/modules/scan/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: ad4dedb929b147b19b55e0831d3ff52ce0d6f17d X-VCS-Branch: repoman Date: Sat, 15 Jul 2017 02:29:30 +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: c5534969-af9f-46e5-92d1-16858c641037 X-Archives-Hash: ff6b9ed2eedd8508a05aceac4204e7ea commit: ad4dedb929b147b19b55e0831d3ff52ce0d6f17d Author: Brian Dolbec gentoo org> AuthorDate: Sat Jul 15 00:11:13 2017 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Sat Jul 15 02:25:44 2017 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=ad4dedb9 repoman: Update modules/scan/module.py for linechecks config addition repoman/pym/repoman/modules/scan/module.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/repoman/pym/repoman/modules/scan/module.py b/repoman/pym/repoman/modules/scan/module.py index 57ba274a1..ba720386c 100644 --- a/repoman/pym/repoman/modules/scan/module.py +++ b/repoman/pym/repoman/modules/scan/module.py @@ -25,7 +25,7 @@ class ModuleConfig(object): @param configpaths: ordered list of filepaths to load ''' - self.configpaths = [os.path.join(path, 'repository.yml') for path in configpaths] + self.configpaths = [os.path.join(path, 'repository.yaml') for path in configpaths] logging.debug("ModuleConfig; configpaths: %s", self.configpaths) self.controller = Modules(path=MODULES_PATH, namepath="repoman.modules.scan") @@ -41,13 +41,17 @@ class ModuleConfig(object): for loop in ['pkgs', 'ebuilds', 'final']: logging.debug("ModuleConfig; Processing loop %s", loop) setattr(self, '%s_loop' % loop, self._determine_list(loop)) + self.linechecks = stack_lists(c['linechecks_modules'].split() for c in self._configs) def load_configs(self, configpaths=None): - '''load the config files in order''' + '''load the config files in order + + @param configpaths: ordered list of filepaths to load + ''' if configpaths: self.configpaths = configpaths elif not self.configpaths: - logging.error("ModuleConfig; Error: No repository.yml files defined") + logging.error("ModuleConfig; Error: No repository.yaml files defined") configs = [] for path in self.configpaths: logging.debug("ModuleConfig; Processing: %s", path)