From a38876e1bcb94b6452f2c820e20883580e47cfe4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Jan 2016 15:41:42 +0200 Subject: Add support for passing config vars to pkg-{build,clean,install,uninstall} --- bpkg/utility.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bpkg/utility.cxx') 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. -- cgit v1.1