aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_repository.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/e_repository.cc')
-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 ae1ec736c..69b58b69c 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -1162,7 +1162,7 @@ ERepository::repository_factory_create(
std::shared_ptr<ERepositorySequence> master_repositories;
std::string master_repository_str(f("master_repository"));
- if (master_repository_str.empty() && ! layout_conf)
+ if (master_repository_str.empty() && ((! layout_conf) || (layout_conf->get("masters").empty())))
master_repository_str = f("master_repository_if_unknown");
if (! master_repository_str.empty())