aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-install.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-install.hxx')
-rw-r--r--bpkg/pkg-install.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/bpkg/pkg-install.hxx b/bpkg/pkg-install.hxx
index 6cc88e4..3f257f0 100644
--- a/bpkg/pkg-install.hxx
+++ b/bpkg/pkg-install.hxx
@@ -1,12 +1,10 @@
// file : bpkg/pkg-install.hxx -*- C++ -*-
-// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
#ifndef BPKG_PKG_INSTALL_HXX
#define BPKG_PKG_INSTALL_HXX
#include <bpkg/types.hxx>
-#include <bpkg/forward.hxx> // selected_package
#include <bpkg/utility.hxx>
#include <bpkg/pkg-command.hxx>
@@ -14,6 +12,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)
{
@@ -23,7 +25,9 @@ namespace bpkg
o.recursive (),
o.immediate (),
o.all (),
+ o.all_pattern (),
false /* package_cwd */,
+ false /* allow_host_type */,
args);
}
}