aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-01-18 23:26:55 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-01-18 23:26:55 +0000
commitd8a52603c1b7cadcd41eacc759b877ace8a4e574 (patch)
tree3b7cd013dae2ae647e0c766b73567c65c1d912b3
parenta317c029d9a1aa86c8e69fe7c78f1ce2fcabadbc (diff)
downloadpaludis-d8a52603c1b7cadcd41eacc759b877ace8a4e574.tar.gz
paludis-d8a52603c1b7cadcd41eacc759b877ace8a4e574.tar.xz
Define PALUDIS_EAPIS_DIR when sourcing eapi conf files
-rw-r--r--paludis/repositories/e/eapi.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/repositories/e/eapi.cc b/paludis/repositories/e/eapi.cc
index 4fcf635..55c0760 100644
--- a/paludis/repositories/e/eapi.cc
+++ b/paludis/repositories/e/eapi.cc
@@ -28,6 +28,7 @@
#include <paludis/util/destringify.hh>
#include <paludis/util/set.hh>
#include <paludis/util/make_shared_ptr.hh>
+#include <paludis/util/map.hh>
#include <paludis/util/tokeniser.hh>
#include <paludis/util/stringify.hh>
#include <paludis/util/private_implementation_pattern-impl.hh>
@@ -65,7 +66,9 @@ namespace paludis
Context cc("When loading EAPI file '" + stringify(*d) + "':");
- KeyValueConfigFile k(*d, KeyValueConfigFileOptions());
+ tr1::shared_ptr<Map<std::string, std::string> > predefined(new Map<std::string, std::string>);
+ predefined->insert("PALUDIS_EAPIS_DIR", stringify(d->dirname()));
+ KeyValueConfigFile k(*d, KeyValueConfigFileOptions(), predefined);
PackageDepSpecParseOptions package_dep_spec_parse_options;
{