From 1e8c9a72279eeec615a3c25d3fef360888528b8b Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Fri, 13 Sep 2013 11:11:22 +0200 Subject: [PATCH] Bug #484730: In sync mode, use repos.conf section name when repo_name file is missing. --- pym/portage/repository/config.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.26.2