aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2013-07-25 20:44:39 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2013-07-25 20:44:39 +0200
commitd27baf8b2b5c49bcf9c16256ff34d5a51a1bd54d (patch)
treee8dff4a7a2d148195f4aa80c5d809c94afe514cc /pym/portage/repository/config.py
parentPrint more consistent error messages for entries in repos.conf. (diff)
downloadportage-d27baf8b2b5c49bcf9c16256ff34d5a51a1bd54d.tar.gz
portage-d27baf8b2b5c49bcf9c16256ff34d5a51a1bd54d.tar.bz2
portage-d27baf8b2b5c49bcf9c16256ff34d5a51a1bd54d.zip
Disable an error for entries from PORTDIR_OVERLAY.
Diffstat (limited to 'pym/portage/repository/config.py')
-rw-r--r--pym/portage/repository/config.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index a79de4a5f..919a9d67b 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -629,14 +629,16 @@ class RepoConfigLoader(object):
continue
else:
if not portage._sync_disabled_warnings:
- if repo.location and not isdir_raise_eaccess(repo.location):
+ if not isdir_raise_eaccess(repo.location):
writemsg_level("!!! %s\n" % _("Section '%s' in repos.conf has location attribute set "
"to nonexistent directory: '%s'") %
(repo_name, repo.location), level=logging.ERROR, noiselevel=-1)
del prepos[repo_name]
continue
- if repo.missing_repo_name:
+ # After removing support for PORTDIR_OVERLAY, the following check can be:
+ # if repo.missing_repo_name:
+ if repo.missing_repo_name and repo.name != repo_name:
writemsg_level("!!! %s\n" % _("Section '%s' in repos.conf refers to repository "
"without repository name set in '%s'") %
(repo_name, os.path.join(repo.location, REPO_NAME_LOC)), level=logging.ERROR, noiselevel=-1)