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-command.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bpkg/pkg-command.hxx') diff --git a/bpkg/pkg-command.hxx b/bpkg/pkg-command.hxx index de6ccf9..329360d 100644 --- a/bpkg/pkg-command.hxx +++ b/bpkg/pkg-command.hxx @@ -15,9 +15,13 @@ namespace bpkg { // Common pkg-{update,clean,test,install,...} implementation. // + // If cmd_variant is not empty, then the -for- is performed + // instead. + // int pkg_command (const string& cmd, // Without the 'pkg-' prefix. const configuration_options&, + const string& cmd_variant, cli::scanner& args); struct pkg_command_vars @@ -30,6 +34,7 @@ namespace bpkg pkg_command (const string& cmd, const dir_path& configuration, const common_options&, + const string& cmd_variant, const strings& common_vars, const vector&); } -- cgit v1.1