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 A86A313877A for ; Fri, 5 Sep 2014 04:38:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C0DC1E09C2; Fri, 5 Sep 2014 04:38:24 +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 84F15E09B6 for ; Fri, 5 Sep 2014 04:38:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4FE923400BB for ; Fri, 5 Sep 2014 04:38:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B943E4C0B for ; Fri, 5 Sep 2014 04:38:19 +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: <1409815243.7d1b0163b9b165df2b00b61a32a93782503dc285.dol-sen@gentoo> Subject: [gentoo-commits] proj/portage:plugin-sync commit in: pym/portage/sync/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/sync/__init__.py pym/portage/sync/config_checks.py X-VCS-Directories: pym/portage/sync/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 7d1b0163b9b165df2b00b61a32a93782503dc285 X-VCS-Branch: plugin-sync Date: Fri, 5 Sep 2014 04:38:19 +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: 450ee713-6fc8-4cc1-bacd-5ca095ae7733 X-Archives-Hash: 091728be126203caa6a6afef645cb41a commit: 7d1b0163b9b165df2b00b61a32a93782503dc285 Author: Brian Dolbec gentoo org> AuthorDate: Tue Jun 17 18:44:43 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Thu Sep 4 07:20:43 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=7d1b0163 portage/sync: Add additional output info for unsupported sync-types Comment out some debug print()'s --- pym/portage/sync/__init__.py | 5 +++-- pym/portage/sync/config_checks.py | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pym/portage/sync/__init__.py b/pym/portage/sync/__init__.py index 6d2a732..b74c89e 100644 --- a/pym/portage/sync/__init__.py +++ b/pym/portage/sync/__init__.py @@ -11,12 +11,12 @@ sync_manager = None path = os.path.join(os.path.dirname(__file__), "modules") # initial development debug info -print("module path:", path) +#print("module path:", path) module_controller = Modules(path=path, namepath="portage.sync.modules") # initial development debug info -print(module_controller.module_names) +#print(module_controller.module_names) module_names = module_controller.module_names[:] @@ -43,6 +43,7 @@ def get_syncer(settings=None, logger=None): def validate_config(repo, logger): '''Validate the repos.conf settings for the repo''' + global module_names, module_controller if not check_type(repo, logger, module_names): return False diff --git a/pym/portage/sync/config_checks.py b/pym/portage/sync/config_checks.py index 8ef1974..db316aa 100644 --- a/pym/portage/sync/config_checks.py +++ b/pym/portage/sync/config_checks.py @@ -26,6 +26,10 @@ def check_type(repo, logger, module_names): _("Repository '%s' has sync-type attribute set to unsupported value: '%s'") % (repo.name, repo.sync_type), level=logger.ERROR, noiselevel=-1) + writemsg_level("!!! %s\n" % + _("Installed sync-types are: '%s'") + % (str(module_names)), + level=logger.ERROR, noiselevel=-1) return False return True