From: Arfrever Frehtes Taifersar Arahesis Date: Fri, 13 Sep 2013 09:11:22 +0000 (+0200) Subject: Bug #484730: In sync mode, use repos.conf section name when repo_name file is missing. X-Git-Tag: v2.2.5~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e8c9a72279eeec615a3c25d3fef360888528b8b;p=portage.git Bug #484730: In sync mode, use repos.conf section name when repo_name file is missing. --- diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 4c4a2ebae..6ab30655f 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -176,11 +176,11 @@ class RepoConfig(object): missing = True self.name = name if self.location is not None: - if os.path.isdir(location): - eapi = read_corresponding_eapi_file(os.path.join(self.location, REPO_NAME_LOC)) - self.name, missing = self._read_valid_repo_name(self.location) - else: - missing = not portage._sync_disabled_warnings + eapi = read_corresponding_eapi_file(os.path.join(self.location, REPO_NAME_LOC)) + self.name, missing = self._read_valid_repo_name(self.location) + if missing and portage._sync_disabled_warnings: + self.name = name + missing = False elif name == "DEFAULT": missing = False