aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2014-03-15 00:57:41 -0700
committerBrian Dolbec <dolsen@gentoo.org>2014-12-04 11:54:07 -0800
commit4f533830847f9db513adeaba0b423d3a872390c8 (patch)
tree45b7516b7769ef0897f861dca7991448ee0a0fb2 /pym/portage/repository/config.py
parentportage/sync: Move the Modules, SyncManager initialization code (diff)
downloadportage-4f533830847f9db513adeaba0b423d3a872390c8.tar.gz
portage-4f533830847f9db513adeaba0b423d3a872390c8.tar.bz2
portage-4f533830847f9db513adeaba0b423d3a872390c8.zip
repository/config.py: Use the sync.module_names for the sync-type check
Diffstat (limited to 'pym/portage/repository/config.py')
-rw-r--r--pym/portage/repository/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index bef643df3..4a183663e 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -560,7 +560,7 @@ class RepoConfigLoader(object):
sname, level=logging.ERROR, noiselevel=-1)
continue
- if repo.sync_type not in (None, "cvs", "git", "rsync"):
+ 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