aboutsummaryrefslogtreecommitdiff
path: root/build2/install/operation.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-16 10:35:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-16 18:15:18 +0200
commitece4003beebd23082a5fd7a324de40c5572161d1 (patch)
tree44597a24266b31e55b27b7393d2d20c729603d95 /build2/install/operation.cxx
parentd2b324a72fdf16fcd68e6ba7ca0280aa95de4b71 (diff)
Add support for passing parameters to (meta-) operations
Diffstat (limited to 'build2/install/operation.cxx')
-rw-r--r--build2/install/operation.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/install/operation.cxx b/build2/install/operation.cxx
index 9873ac2..44d257f 100644
--- a/build2/install/operation.cxx
+++ b/build2/install/operation.cxx
@@ -12,8 +12,11 @@ namespace build2
namespace install
{
static operation_id
- install_pre (meta_operation_id mo)
+ install_pre (const values& params, meta_operation_id mo, const location& l)
{
+ if (!params.empty ())
+ fail (l) << "unexpected parameters for operation install";
+
// Run update as a pre-operation, unless we are disfiguring.
//
return mo != disfigure_id ? update_id : 0;