From d11f39f12f7f940539d25bb5aef20fa1f1371fa4 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 15 Sep 2013 03:57:55 -0700 Subject: [PATCH] emerge-webrsync: fix bug #484950 --- pym/portage/repository/config.py | 9 +++++++-- 1 file 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 -- 2.26.2