From e0c4d1dc2b6bc5ee238ea94cd0803855a337efdf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 12 Apr 2016 15:36:24 +0200 Subject: 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. --- bpkg/utility | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bpkg/utility') 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. // -- cgit v1.1