Fix alias handling in missing masters warning.
authorZac Medico <zmedico@gentoo.org>
Thu, 25 Jul 2013 21:41:04 +0000 (14:41 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 25 Jul 2013 21:41:04 +0000 (14:41 -0700)
pym/portage/repository/config.py

index 57cc3a3c954d2a5b19f6be151a5440c643b296c4..7620c5f0ece564482a58e8c9f588b02df86240e0 100644 (file)
@@ -798,9 +798,9 @@ class RepoConfigLoader(object):
                                continue
 
                        if repo._masters_orig is None and self.mainRepo() and \
-                               repo_name != self.mainRepo().name and not portage._sync_disabled_warnings:
+                               repo.name != self.mainRepo().name and not portage._sync_disabled_warnings:
                                writemsg_level("!!! %s\n" % _("Repository '%s' is missing masters attribute in '%s'") %
-                                       (repo_name, os.path.join(repo.location, "metadata", "layout.conf")) +
+                                       (repo.name, os.path.join(repo.location, "metadata", "layout.conf")) +
                                        "!!! %s\n" % _("Set 'masters = %s' in this file for future compatibility") %
                                        self.mainRepo().name, level=logging.WARNING, noiselevel=-1)