Lines 78-85
class RepoConfig(object):
Link Here
|
78 |
"""Stores config of one repository""" |
78 |
"""Stores config of one repository""" |
79 |
|
79 |
|
80 |
__slots__ = ('aliases', 'allow_missing_manifest', 'allow_provide_virtual', |
80 |
__slots__ = ('aliases', 'allow_missing_manifest', 'allow_provide_virtual', |
81 |
'cache_formats', 'create_manifest', 'disable_manifest', 'eapi', |
81 |
'cache_formats', 'create_manifest', 'disabled', 'disable_manifest', |
82 |
'eclass_db', 'eclass_locations', 'eclass_overrides', |
82 |
'eapi', 'eclass_db', 'eclass_locations', 'eclass_overrides', |
83 |
'find_invalid_path_char', 'force', 'format', 'local_config', 'location', |
83 |
'find_invalid_path_char', 'force', 'format', 'local_config', 'location', |
84 |
'main_repo', 'manifest_hashes', 'masters', 'missing_repo_name', |
84 |
'main_repo', 'manifest_hashes', 'masters', 'missing_repo_name', |
85 |
'name', 'portage1_profiles', 'portage1_profiles_compat', 'priority', |
85 |
'name', 'portage1_profiles', 'portage1_profiles_compat', 'priority', |
Lines 173-178
class RepoConfig(object):
Link Here
|
173 |
location = None |
173 |
location = None |
174 |
self.location = location |
174 |
self.location = location |
175 |
|
175 |
|
|
|
176 |
disabled = repo_opts.get('disabled') |
177 |
if disabled is not None: |
178 |
disabled = disabled.strip().lower() == 'true' |
179 |
self.disabled = disabled or False |
180 |
|
176 |
eapi = None |
181 |
eapi = None |
177 |
missing = True |
182 |
missing = True |
178 |
self.name = name |
183 |
self.name = name |
Lines 633-639
class RepoConfigLoader(object):
Link Here
|
633 |
# Do this before expanding aliases, so that location_map and |
638 |
# Do this before expanding aliases, so that location_map and |
634 |
# treemap consistently map unaliased names whenever available. |
639 |
# treemap consistently map unaliased names whenever available. |
635 |
for repo_name, repo in list(prepos.items()): |
640 |
for repo_name, repo in list(prepos.items()): |
636 |
if repo.location is None: |
641 |
if repo.disabled: |
|
|
642 |
del prepos[repo_name] |
643 |
continue |
644 |
elif repo.location is None: |
637 |
if repo_name != 'DEFAULT': |
645 |
if repo_name != 'DEFAULT': |
638 |
# Skip this warning for repoman (bug #474578). |
646 |
# Skip this warning for repoman (bug #474578). |
639 |
if settings.local_config and paths: |
647 |
if settings.local_config and paths: |