aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-09-15 03:57:55 -0700
committerZac Medico <zmedico@gentoo.org>2013-09-15 03:57:55 -0700
commitd11f39f12f7f940539d25bb5aef20fa1f1371fa4 (patch)
tree15512617e2a0a73d3d96d08123ed2096428eb917 /pym/portage/repository/config.py
parent_copyxattr: ignore EOPNOTSUPP from os.listxattr() (diff)
downloadportage-d11f39f12f7f940539d25bb5aef20fa1f1371fa4.tar.gz
portage-d11f39f12f7f940539d25bb5aef20fa1f1371fa4.tar.bz2
portage-d11f39f12f7f940539d25bb5aef20fa1f1371fa4.zip
emerge-webrsync: fix bug #484950v2.2.5
Diffstat (limited to 'pym/portage/repository/config.py')
-rw-r--r--pym/portage/repository/config.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index 6ab30655f..b5289d98e 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -178,9 +178,14 @@ class RepoConfig(object):
if self.location is not None:
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:
+ if missing:
+ # The name from repos.conf has to be used here for
+ # things like emerge-webrsync to work when the repo
+ # is empty (bug #484950).
self.name = name
- missing = False
+ if portage._sync_disabled_warnings:
+ missing = False
+
elif name == "DEFAULT":
missing = False