diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-25 15:41:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-25 15:41:42 +0200 |
commit | a38876e1bcb94b6452f2c820e20883580e47cfe4 (patch) | |
tree | 001e06a00c0adcbe497a8386daf4516a2036202e /bpkg/utility.cxx | |
parent | 33c8959ea3e3e6a4de1d5ba254a262b0464ee42b (diff) |
Add support for passing config vars to pkg-{build,clean,install,uninstall}
Diffstat (limited to 'bpkg/utility.cxx')
-rw-r--r-- | bpkg/utility.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bpkg/utility.cxx b/bpkg/utility.cxx index e8f8574..556bc88 100644 --- a/bpkg/utility.cxx +++ b/bpkg/utility.cxx @@ -195,7 +195,8 @@ namespace bpkg run_b (const common_options& co, const string& bspec, bool quiet, - const strings& vars) + const strings& vars1, + const strings& vars2) { cstrings args {co.build ().string ().c_str ()}; @@ -222,7 +223,10 @@ namespace bpkg // Add config vars. // - for (const string& v: vars) + for (const string& v: vars1) + args.push_back (v.c_str ()); + + for (const string& v: vars2) args.push_back (v.c_str ()); // Add buildspec. |