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.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/bpkg/pkg-uninstall.hxx b/bpkg/pkg-uninstall.hxx
index d3b6c63..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)
{
@@ -21,7 +23,9 @@ namespace bpkg
o.recursive (),
o.immediate (),
o.all (),
+ o.all_pattern (),
false /* package_cwd */,
+ false /* allow_host_type */,
args);
}
}