aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2013-09-13 11:11:22 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2013-09-13 11:11:22 +0200
commit1e8c9a72279eeec615a3c25d3fef360888528b8b (patch)
treed9cc69f6ea63a4ab1f15be5fd1eae228bae19d5e /pym/portage/repository/config.py
parentdohtml: restore behavior noted in bug #425214 (diff)
downloadportage-1e8c9a72279eeec615a3c25d3fef360888528b8b.tar.gz
portage-1e8c9a72279eeec615a3c25d3fef360888528b8b.tar.bz2
portage-1e8c9a72279eeec615a3c25d3fef360888528b8b.zip
Bug #484730: In sync mode, use repos.conf section name when repo_name file is missing.
Diffstat (limited to 'pym/portage/repository/config.py')
-rw-r--r--pym/portage/repository/config.py10
1 files 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