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-install.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bpkg/pkg-install.hxx') diff --git a/bpkg/pkg-install.hxx b/bpkg/pkg-install.hxx index 120576a..3898c1a 100644 --- a/bpkg/pkg-install.hxx +++ b/bpkg/pkg-install.hxx @@ -13,6 +13,10 @@ namespace bpkg { + // Note that we disallow installing packages from the host/build2 + // configurations. The reason for that is that otherwise we can fail, trying + // to build a package both for install and normally (as a dependency). + // inline int pkg_install (const pkg_install_options& o, cli::group_scanner& args) { @@ -24,6 +28,7 @@ namespace bpkg o.all (), o.all_pattern (), false /* package_cwd */, + false /* allow_host_type */, args); } } -- cgit v1.1