aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2011-09-28 20:53:41 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2011-09-28 20:54:17 +0100
commitd1a2b50c7d803c8cbe4af8e06e829d6dbbf01634 (patch)
tree7a2c8c36830c3be674e252459bd947d3938dda6b
parent1e467c0865f9d4281aecd376884c084f1a7e83b0 (diff)
downloadpaludis-d1a2b50c7d803c8cbe4af8e06e829d6dbbf01634.tar.gz
paludis-d1a2b50c7d803c8cbe4af8e06e829d6dbbf01634.tar.xz
Fix master_repository / layout.conf warning
-rw-r--r--paludis/repositories/e/e_repository.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index ed677a3..f8b5806 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -1167,7 +1167,7 @@ ERepository::repository_factory_create(
if (! master_repository_str.empty())
{
- if (layout_conf)
+ if (layout_conf && ! layout_conf->get("masters").empty())
{
Log::get_instance()->message("e.ebuild.configuration.master_repository", ll_warning, lc_context) << "Key 'master_repository' in '"
<< f("repo_file") << "' will override '" << (FSPath(location) / "metadata/layout.conf")