aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-command.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-11-26 21:03:34 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-11-29 19:56:21 +0300
commit4f31188d4a7ce3cd9b657cc58e06632b9ccd7d8f (patch)
tree4a05e04c5a19132b2917856dd9ecfe0157412430 /bpkg/pkg-command.hxx
parent6e05e4079170efb84db25db6ca8f25886ab379d4 (diff)
Disallow installing/uninstalling packages from host configuration
Diffstat (limited to 'bpkg/pkg-command.hxx')
-rw-r--r--bpkg/pkg-command.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/bpkg/pkg-command.hxx b/bpkg/pkg-command.hxx
index 0ed7072..2de9b73 100644
--- a/bpkg/pkg-command.hxx
+++ b/bpkg/pkg-command.hxx
@@ -20,6 +20,10 @@ namespace bpkg
// The command can also be performed recursively for all or immediate
// dependencies of the specified or all the held packages.
//
+ // If allow_host_type is false, then fail if the current configuration is of
+ // the host or build2 type. Also skip the build-time dependencies in the
+ // recursive mode in this case.
+ //
// Note: loads selected packages.
//
int
@@ -31,6 +35,7 @@ namespace bpkg
bool all,
const strings& all_patterns,
bool package_cwd,
+ bool allow_host_type,
cli::group_scanner& args);
struct pkg_command_vars