aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ed677a3e7..f8b5806b1 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")