From: Arfrever Frehtes Taifersar Arahesis Date: Thu, 25 Jul 2013 18:44:39 +0000 (+0200) Subject: Disable an error for entries from PORTDIR_OVERLAY. X-Git-Tag: v2.2.0_alpha189~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d27baf8b2b5c49bcf9c16256ff34d5a51a1bd54d;p=portage.git Disable an error for entries from PORTDIR_OVERLAY. --- 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)