aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2014-01-07 22:38:29 +0100
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2014-01-07 22:38:29 +0100
commitc980aac3ed85d63f5e3fa96db249cd5076c50cbc (patch)
tree50d0a3d13970f00c8f13c51a4e4e20dec915f083 /pym/portage/repository/config.py
parentUse with statements. (diff)
downloadportage-c980aac3ed85d63f5e3fa96db249cd5076c50cbc.tar.gz
portage-c980aac3ed85d63f5e3fa96db249cd5076c50cbc.tar.bz2
portage-c980aac3ed85d63f5e3fa96db249cd5076c50cbc.zip
Use empty value of masters attribute in test suite when possible.
Diffstat (limited to 'pym/portage/repository/config.py')
-rw-r--r--pym/portage/repository/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index 0d6edf4e3..71b75fb5f 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -1,4 +1,4 @@
-# Copyright 2010-2013 Gentoo Foundation
+# Copyright 2010-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
from __future__ import unicode_literals
@@ -814,6 +814,7 @@ class RepoConfigLoader(object):
if repo._masters_orig is None and self.mainRepo() and \
repo.name != self.mainRepo().name and not portage._sync_disabled_warnings:
+ # TODO: Delete masters code in pym/portage/tests/resolver/ResolverPlayground.py when deleting this warning.
writemsg_level("!!! %s\n" % _("Repository '%s' is missing masters attribute in '%s'") %
(repo.name, os.path.join(repo.location, "metadata", "layout.conf")) +
"!!! %s\n" % _("Set 'masters = %s' in this file for future compatibility") %