aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/eapi.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-20 18:57:57 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-20 18:57:57 +0000
commit42ed4b3ffb46932a7315c0b08a1cb27ad789a823 (patch)
treec4090aaf090c804ceba1c6c0cf68ee703fbd6669 /paludis/repositories/e/eapi.cc
parent8815d142c5245fd3969f547eb76c233b767ff6ce (diff)
downloadpaludis-42ed4b3ffb46932a7315c0b08a1cb27ad789a823.tar.gz
paludis-42ed4b3ffb46932a7315c0b08a1cb27ad789a823.tar.xz
Move env var names into header
Diffstat (limited to 'paludis/repositories/e/eapi.cc')
-rw-r--r--paludis/repositories/e/eapi.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/paludis/repositories/e/eapi.cc b/paludis/repositories/e/eapi.cc
index c6450968e..ab4c08d23 100644
--- a/paludis/repositories/e/eapi.cc
+++ b/paludis/repositories/e/eapi.cc
@@ -18,8 +18,10 @@
*/
#include <paludis/repositories/e/eapi.hh>
+
#include <paludis/name.hh>
#include <paludis/dep_spec.hh>
+
#include <paludis/util/is_file_with_extension.hh>
#include <paludis/util/system.hh>
#include <paludis/util/strip.hh>
@@ -35,6 +37,8 @@
#include <paludis/util/hashes.hh>
#include <paludis/util/make_named_values.hh>
#include <paludis/util/fs_iterator.hh>
+#include <paludis/util/env_var_names.hh>
+
#include <unordered_map>
#include <map>
#include <vector>
@@ -370,7 +374,7 @@ namespace paludis
{
Context c("When loading EAPI data:");
- for (FSIterator d(FSPath(getenv_with_default("PALUDIS_EAPIS_DIR", DATADIR "/paludis/eapis")), { fsio_inode_sort }), d_end ;
+ for (FSIterator d(FSPath(getenv_with_default(env_vars::eapis_dir, DATADIR "/paludis/eapis")), { fsio_inode_sort }), d_end ;
d != d_end ; ++d)
{
if (! is_file_with_extension(*d, ".conf", { }))