Fix KeyError for missing repo in eclass_overrides
authorZac Medico <zmedico@gentoo.org>
Thu, 7 Oct 2010 21:20:44 +0000 (14:20 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 7 Oct 2010 21:20:44 +0000 (14:20 -0700)
pym/portage/repository/config.py

index e99073dfa72b41e416653f319d1e474cc2effa5b..fd3eb183b9752191e558f7162a8c691830e8d41a 100644 (file)
@@ -375,7 +375,7 @@ class RepoConfigLoader(object):
 
                        if repo.eclass_overrides:
                                for other_repo_name in repo.eclass_overrides:
-                                       if other_repo_name in self.prepos:
+                                       if other_repo_name in self.treemap:
                                                eclass_locations.append(self.get_location_for_name(other_repo_name))
                                        else:
                                                writemsg_level(_("Unavailable repository '%s' " \