aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-update.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-update.hxx')
-rw-r--r--bpkg/pkg-update.hxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/bpkg/pkg-update.hxx b/bpkg/pkg-update.hxx
index abf7317..cac7651 100644
--- a/bpkg/pkg-update.hxx
+++ b/bpkg/pkg-update.hxx
@@ -1,12 +1,10 @@
// file : bpkg/pkg-update.hxx -*- C++ -*-
-// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
#ifndef BPKG_PKG_UPDATE_HXX
#define BPKG_PKG_UPDATE_HXX
#include <bpkg/types.hxx>
-#include <bpkg/forward.hxx> // selected_package
#include <bpkg/utility.hxx>
#include <bpkg/pkg-command.hxx>
@@ -20,21 +18,22 @@ namespace bpkg
return pkg_command ("update",
o,
o.for_ (),
- false /* recursive */,
- false /* immediate */,
+ o.recursive (),
+ o.immediate (),
o.all (),
+ o.all_pattern (),
false /* package_cwd */,
+ true /* allow_host_type */,
args);
}
inline void
- pkg_update (const dir_path& configuration,
- const common_options& o,
+ pkg_update (const common_options& o,
const string& cmd_variant,
const strings& common_vars,
const vector<pkg_command_vars>& pkgs)
{
- pkg_command ("update", configuration, o, cmd_variant, common_vars, pkgs);
+ pkg_command ("update", o, cmd_variant, common_vars, pkgs);
}
}