From bbe0fd57a31ebd9b900f1774b5606f2b9923c5e9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 25 Jul 2013 14:41:04 -0700 Subject: [PATCH] Fix alias handling in missing masters warning. --- pym/portage/repository/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 57cc3a3c9..7620c5f0e 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -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) -- 2.26.2