aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-05-02 14:45:48 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-05-02 14:45:48 +0000
commit834c1ba8fb264eba018c39dc30cef99b6ee4ca9d (patch)
tree0016c2be9d5deea030832b5f2c601a711fed5e51
parent87b9b122ea18ce7cfe72f141e8d22da9bbca8990 (diff)
downloadpaludis-834c1ba8fb264eba018c39dc30cef99b6ee4ca9d.tar.gz
paludis-834c1ba8fb264eba018c39dc30cef99b6ee4ca9d.tar.xz
Pass HOOK_LOG_LEVEL, HOOK_CONFIG_SUFFIX to hooks
-rw-r--r--paludis/default_config.hh8
-rw-r--r--paludis/default_environment.cc2
2 files changed, 10 insertions, 0 deletions
diff --git a/paludis/default_config.hh b/paludis/default_config.hh
index 5bcd408..25feafa 100644
--- a/paludis/default_config.hh
+++ b/paludis/default_config.hh
@@ -190,6 +190,14 @@ namespace paludis
*/
static void set_config_suffix(const std::string &);
+ /**
+ * Get config suffix.
+ */
+ static std::string config_suffix()
+ {
+ return _config_suffix;
+ }
+
///\name Repositories
///{
diff --git a/paludis/default_environment.cc b/paludis/default_environment.cc
index 99b334e..6db4898 100644
--- a/paludis/default_environment.cc
+++ b/paludis/default_environment.cc
@@ -386,6 +386,8 @@ namespace
MakeEnvCommand cmd(make_env_command("bash '" + stringify(f) + "'")
("ROOT", DefaultConfig::get_instance()->root())
("HOOK", hook.name())
+ ("HOOK_LOG_LEVEL", Log::get_instance()->log_level_string())
+ ("HOOK_CONFIG_SUFFIX", DefaultConfig::config_suffix())
("PALUDIS_COMMAND", paludis_command));
for (Hook::Iterator h(hook.begin()), h_end(hook.end()) ; h != h_end ; ++h)