aboutsummaryrefslogtreecommitdiff
path: root/paludis/environment/default/default_environment.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/environment/default/default_environment.cc')
-rw-r--r--paludis/environment/default/default_environment.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/paludis/environment/default/default_environment.cc b/paludis/environment/default/default_environment.cc
index 85b0738..690c4c2 100644
--- a/paludis/environment/default/default_environment.cc
+++ b/paludis/environment/default/default_environment.cc
@@ -680,6 +680,24 @@ DefaultEnvironment::hook_dirs() const
return join(hook_dirs_ref.begin(), hook_dirs_ref.end(), " ");
}
+std::string
+DefaultEnvironment::fetchers_dirs() const
+{
+ std::string dirs(stringify(FSEntry(DefaultConfig::get_instance()->config_dir()) / "fetchers"));
+ if (getenv_with_default("PALUDIS_NO_GLOBAL_FETCHERS", "").empty())
+ dirs += " " + Environment::fetchers_dirs();
+ return dirs;
+}
+
+std::string
+DefaultEnvironment::syncers_dirs() const
+{
+ std::string dirs(stringify(FSEntry(DefaultConfig::get_instance()->config_dir()) / "syncers"));
+ if (getenv_with_default("PALUDIS_NO_GLOBAL_SYNCERS", "").empty())
+ dirs += " " + Environment::syncers_dirs();
+ return dirs;
+}
+
CompositeDepAtom::Pointer
DefaultEnvironment::local_package_set(const SetName & s) const
{