emerge-webrsync: fix bug #484950 v2.2.5
authorZac Medico <zmedico@gentoo.org>
Sun, 15 Sep 2013 10:57:55 +0000 (03:57 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 15 Sep 2013 10:57:55 +0000 (03:57 -0700)
pym/portage/repository/config.py

index 6ab30655ffaddf4cae6bf19052732977a7373ef8..b5289d98ef940b012a0967f284656082cffb7d54 100644 (file)
@@ -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