aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2014-03-30 02:42:44 -0700
committerBrian Dolbec <dolsen@gentoo.org>2014-12-04 11:54:07 -0800
commit07bdc9f93da073152b3440278827d97806aa5256 (patch)
treec6629c3d8dea4edc8b6a40fce848edb109ac5d0f /pym/portage/repository/config.py
parentrepository/config: Changes for plugin-sync (diff)
downloadportage-07bdc9f93da073152b3440278827d97806aa5256.tar.gz
portage-07bdc9f93da073152b3440278827d97806aa5256.tar.bz2
portage-07bdc9f93da073152b3440278827d97806aa5256.zip
portage/repository/config.py: Add auto_sync attribute
Make the auto_sync variable lowercase cnf/repos.conf: Add new auto-sync variable
Diffstat (limited to 'pym/portage/repository/config.py')
-rw-r--r--pym/portage/repository/config.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index 272bfb7b2..f5c362818 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -79,8 +79,8 @@ class RepoConfig(object):
"""Stores config of one repository"""
__slots__ = ('aliases', 'allow_missing_manifest', 'allow_provide_virtual',
- 'cache_formats', 'create_manifest', 'disable_manifest', 'eapi',
- 'eclass_db', 'eclass_locations', 'eclass_overrides',
+ 'auto_sync', 'cache_formats', 'create_manifest', 'disable_manifest',
+ 'eapi', 'eclass_db', 'eclass_locations', 'eclass_overrides',
'find_invalid_path_char', 'force', 'format', 'local_config', 'location',
'main_repo', 'manifest_hashes', 'masters', 'missing_repo_name',
'name', 'portage1_profiles', 'portage1_profiles_compat', 'priority',
@@ -159,6 +159,11 @@ class RepoConfig(object):
sync_uri = sync_uri.strip()
self.sync_uri = sync_uri or None
+ auto_sync = repo_opts.get('auto-sync')
+ if auto_sync is not None:
+ auto_sync = auto_sync.strip().lower()
+ self.auto_sync = auto_sync
+
# Not implemented.
format = repo_opts.get('format')
if format is not None:
@@ -552,7 +557,7 @@ class RepoConfigLoader(object):
repo = RepoConfig(sname, optdict, local_config=local_config)
# Perform repos.conf sync variable validation
- portage.sync.validate_config(repo)
+ portage.sync.validate_config(repo, logging)
# For backward compatibility with locations set via PORTDIR and
# PORTDIR_OVERLAY, delay validation of the location and repo.name