From 4f31188d4a7ce3cd9b657cc58e06632b9ccd7d8f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 26 Nov 2021 21:03:34 +0300 Subject: Disallow installing/uninstalling packages from host configuration --- 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 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 -- cgit v1.1