aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-update.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-02-08 12:44:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-02-08 12:44:06 +0200
commit974a8c152bf7c9a4a5ce3c45808af65657c2ff1f (patch)
treed9bbfae21920dc0c35758d803831b2b01dc28ac2 /bpkg/pkg-update.hxx
parent994b63e2b60333a83faba52dc6b044fbdbbad61b (diff)
Add --for|-f <operation> option to pkg-update and pkg-build
This allows executing build2 -for-X operations (e.g., update-for-install or update-for-test) in order to minimize the amount of stuff to be updated.
Diffstat (limited to 'bpkg/pkg-update.hxx')
-rw-r--r--bpkg/pkg-update.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/bpkg/pkg-update.hxx b/bpkg/pkg-update.hxx
index 5f62bd9..94d4dad 100644
--- a/bpkg/pkg-update.hxx
+++ b/bpkg/pkg-update.hxx
@@ -17,16 +17,17 @@ namespace bpkg
inline int
pkg_update (const pkg_update_options& o, cli::scanner& args)
{
- return pkg_command ("update", o, args);
+ return pkg_command ("update", o, o.for_ (), args);
}
inline void
pkg_update (const dir_path& configuration,
const common_options& o,
+ const string& cmd_variant,
const strings& common_vars,
const vector<pkg_command_vars>& pkgs)
{
- pkg_command ("update", configuration, o, common_vars, pkgs);
+ pkg_command ("update", configuration, o, cmd_variant, common_vars, pkgs);
}
}