From 974a8c152bf7c9a4a5ce3c45808af65657c2ff1f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 8 Feb 2018 12:44:06 +0200 Subject: Add --for|-f 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. --- bpkg/pkg-update.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bpkg/pkg-update.hxx') 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& pkgs) { - pkg_command ("update", configuration, o, common_vars, pkgs); + pkg_command ("update", configuration, o, cmd_variant, common_vars, pkgs); } } -- cgit v1.1