Gentoo Archives: gentoo-commits

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:plugin-sync commit in: pym/portage/repository/
Date: Wed, 03 Sep 2014 23:36:27
Message-Id: 1409787292.5c32550fc94cab06f39fe587e7d7e5d06737b579.dol-sen@gentoo
1 commit: 5c32550fc94cab06f39fe587e7d7e5d06737b579
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 15 07:57:41 2014 +0000
4 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
5 CommitDate: Wed Sep 3 23:34:52 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=5c32550f
7
8 repository/config.py: Use the sync.module_names for the sync-type check
9
10 ---
11 pym/portage/repository/config.py | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
15 index 5e0d055..330e11b 100644
16 --- a/pym/portage/repository/config.py
17 +++ b/pym/portage/repository/config.py
18 @@ -560,7 +560,7 @@ class RepoConfigLoader(object):
19 sname, level=logging.ERROR, noiselevel=-1)
20 continue
21
22 - if repo.sync_type not in (None, "cvs", "git", "rsync"):
23 + if repo.sync_type not in portage.sync.module_names + [None]:
24 writemsg_level("!!! %s\n" % _("Repository '%s' has sync-type attribute set to unsupported value: '%s'") %
25 (sname, repo.sync_type), level=logging.ERROR, noiselevel=-1)
26 continue