commit: 601ed1923e0c48db32f5c9bd08c7b7efcd7236ce
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 15 07:57:41 2014 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Sat Mar 15 07:57:41 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=601ed192
portage/repository/config.py: Use the sync.module_names for the sync-type check.
---
pym/portage/repository/config.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index 23a2a48..8085d3f 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -565,7 +565,7 @@ class RepoConfigLoader(object):
sname, level=logging.ERROR,
noiselevel=-1)
continue
- if repo.sync_type not in (None, "cvs", "git", "rsync",
"websync"):
+ if repo.sync_type not in portage.sync.module_names +
[None]:
writemsg_level("!!! %s\n" % _("Repository '%s'
has sync-type attribute set to unsupported value: '%s'") %
(sname, repo.sync_type),
level=logging.ERROR, noiselevel=-1)
continue