aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-uninstall.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-uninstall.hxx
parent6e05e4079170efb84db25db6ca8f25886ab379d4 (diff)
Disallow installing/uninstalling packages from host configuration
Diffstat (limited to 'bpkg/pkg-uninstall.hxx')
-rw-r--r--bpkg/pkg-uninstall.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/bpkg/pkg-uninstall.hxx b/bpkg/pkg-uninstall.hxx
index 94a8390..c3df29a 100644
--- a/bpkg/pkg-uninstall.hxx
+++ b/bpkg/pkg-uninstall.hxx
@@ -13,6 +13,9 @@
namespace bpkg
{
+ // Note that we disallow uninstalling packages from the host/build2
+ // configurations (see pkg_install() for details).
+ //
inline int
pkg_uninstall (const pkg_uninstall_options& o, cli::group_scanner& args)
{
@@ -23,6 +26,7 @@ namespace bpkg
o.all (),
o.all_pattern (),
false /* package_cwd */,
+ false /* allow_host_type */,
args);
}
}