aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-uninstall.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-uninstall.hxx')
-rw-r--r--bpkg/pkg-uninstall.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/bpkg/pkg-uninstall.hxx b/bpkg/pkg-uninstall.hxx
index 94a8390..6024fe1 100644
--- a/bpkg/pkg-uninstall.hxx
+++ b/bpkg/pkg-uninstall.hxx
@@ -5,7 +5,6 @@
#define BPKG_PKG_UNINSTALL_HXX
#include <bpkg/types.hxx>
-#include <bpkg/forward.hxx> // selected_package
#include <bpkg/utility.hxx>
#include <bpkg/pkg-command.hxx>
@@ -13,6 +12,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 +25,7 @@ namespace bpkg
o.all (),
o.all_pattern (),
false /* package_cwd */,
+ false /* allow_host_type */,
args);
}
}