diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-12 15:36:24 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-12 15:36:24 +0200 |
commit | e0c4d1dc2b6bc5ee238ea94cd0803855a337efdf (patch) | |
tree | 14d312935b6cd16bb6beea5c8945c326949d1e51 /bpkg/utility | |
parent | f4120bea7831bfd894e03dd25e3849cd84571f8b (diff) |
Set common variables in pkg-* commands on the whole configuration
This makes a difference, for example, in pkg-install where install.root
is needed by prerequisites.
Diffstat (limited to 'bpkg/utility')
-rw-r--r-- | bpkg/utility | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bpkg/utility b/bpkg/utility index 3b2a11f..009ef76 100644 --- a/bpkg/utility +++ b/bpkg/utility @@ -79,17 +79,19 @@ namespace bpkg inline void run (const cstrings& args) {run (args.data ());} - // Run build2, mapping verbosity levels. If quiet is true, then - // run build2 quiet if our verbosity level is 1. + // Run build2, mapping verbosity levels. If quiet is true, then run build2 + // quiet if our verbosity level is 1. Common vars (cvars) are set on the + // configuration scope. // class common_options; void run_b (const common_options&, + const dir_path& configuration, const string& buildspec, bool quiet = false, - const strings& vars1 = strings (), - const strings& vars2 = strings ()); + const strings& pvars = strings (), + const strings& cvars = strings ()); // Call a function if there is an exception. // |