commit: c7c969123710e06a954178dbc9bf460e9e2c538e
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 17 18:44:43 2014 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Tue Jun 17 18:44:43 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c7c96912
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