diff options
Diffstat (limited to 'bpkg/pkg-uninstall.hxx')
-rw-r--r-- | bpkg/pkg-uninstall.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bpkg/pkg-uninstall.hxx b/bpkg/pkg-uninstall.hxx index f6756b0..6024fe1 100644 --- a/bpkg/pkg-uninstall.hxx +++ b/bpkg/pkg-uninstall.hxx @@ -1,12 +1,10 @@ // file : bpkg/pkg-uninstall.hxx -*- C++ -*- -// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file #ifndef BPKG_PKG_UNINSTALL_HXX #define BPKG_PKG_UNINSTALL_HXX #include <bpkg/types.hxx> -#include <bpkg/forward.hxx> // selected_package #include <bpkg/utility.hxx> #include <bpkg/pkg-command.hxx> @@ -14,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) { @@ -22,7 +23,9 @@ namespace bpkg o.recursive (), o.immediate (), o.all (), + o.all_pattern (), false /* package_cwd */, + false /* allow_host_type */, args); } } |