From: Zac Medico Date: Thu, 25 Jul 2013 21:41:04 +0000 (-0700) Subject: Fix alias handling in missing masters warning. X-Git-Tag: v2.2.0_alpha189~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bbe0fd57a31ebd9b900f1774b5606f2b9923c5e9;p=portage.git Fix alias handling in missing masters warning. --- 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)