aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-01-05 03:55:25 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-01-05 03:55:25 +0000
commit8b455d3d0d801923abba2eeef3506f72ff383273 (patch)
tree672c39ea382e8a4a8aa181d0a9f202212be76f63
parentb64f3461967d48b00745b227de37f97cedd9b35e (diff)
downloadpaludis-8b455d3d0d801923abba2eeef3506f72ff383273.tar.gz
paludis-8b455d3d0d801923abba2eeef3506f72ff383273.tar.xz
Make pipe commands available when writing VDB entries
-rw-r--r--paludis/repositories/e/ebuild.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild.cc b/paludis/repositories/e/ebuild.cc
index 5102272..c1f1f2f 100644
--- a/paludis/repositories/e/ebuild.cc
+++ b/paludis/repositories/e/ebuild.cc
@@ -672,6 +672,8 @@ WriteVDBEntryCommand::WriteVDBEntryCommand(const WriteVDBEntryParams & p) :
void
WriteVDBEntryCommand::operator() ()
{
+ using namespace tr1::placeholders;
+
std::string ebuild_cmd(getenv_with_default("PALUDIS_EBUILD_DIR", LIBEXECDIR "/paludis") +
"/write_vdb_entry.bash '" +
stringify(params.output_directory) + "' '" +
@@ -700,6 +702,7 @@ WriteVDBEntryCommand::operator() ()
params.package_id->eapi()->supported->ebuild_options->vdb_from_env_variables)
.with_setenv("PALUDIS_VDB_FROM_ENV_UNLESS_EMPTY_VARIABLES",
params.package_id->eapi()->supported->ebuild_options->vdb_from_env_unless_empty_variables)
+ .with_pipe_command_handler(tr1::bind(&pipe_command_handler, params.environment, params.package_id, _1))
);
if (0 != (run_command(cmd)))