From: Zac Medico Date: Sun, 15 Sep 2013 10:57:55 +0000 (-0700) Subject: emerge-webrsync: fix bug #484950 X-Git-Tag: v2.2.5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d11f39f12f7f940539d25bb5aef20fa1f1371fa4;p=portage.git emerge-webrsync: fix bug #484950 --- 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