config: fix typo maid -> main
authorBrandon Philips <brandon@ifup.co>
Wed, 20 Mar 2013 18:13:21 +0000 (11:13 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 20 Mar 2013 18:37:47 +0000 (11:37 -0700)
this looks like a typo. maid_repo should be main_repo.

pym/portage/repository/config.py

index ef2e4f0c143f8091b708814dda8fed2556d424a6..adeab188d2cad2165591400c0759d9597dd95c1b 100644 (file)
@@ -656,10 +656,10 @@ class RepoConfigLoader(object):
 
        def mainRepo(self):
                """Returns the main repo"""
-               maid_repo = self.prepos['DEFAULT'].main_repo
-               if maid_repo is None:
+               main_repo = self.prepos['DEFAULT'].main_repo
+               if main_repo is None:
                        return None
-               return self.prepos[maid_repo]
+               return self.prepos[main_repo]
 
        def _check_locations(self):
                """Check if repositories location are correct and show a warning message if not"""