From 4d181c3aad97f8ee224666ce5c757036c5f610d5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 12 Mar 2018 09:41:09 +0200 Subject: Store initialized packages for each configuration in database --- bdep/utility.txx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'bdep/utility.txx') diff --git a/bdep/utility.txx b/bdep/utility.txx index 52bbfdb..b796f69 100644 --- a/bdep/utility.txx +++ b/bdep/utility.txx @@ -32,7 +32,7 @@ namespace bdep // Map verbosity level. If we are running quiet or at level 1, then run // bpkg quiet. Otherwise, run it at the same level as us. // - bool quiet (false); // Maybe will become an argument one day. + bool quiet (true); // Maybe will become an argument one day. string vl; if (verb <= (quiet ? 1 : 0)) ops.push_back ("-q"); @@ -80,21 +80,22 @@ namespace bdep } template - process_exit + void run_bpkg (const common_options& co, A&&... args) { process pr (start_bpkg (co, 1 /* stdout */, 2 /* stderr */, forward (args)...)); - pr.wait (); + if (!pr.wait ()) + { + const process_exit& e (*pr.exit); - const process_exit& e (*pr.exit); + if (e.normal ()) + throw failed (); // Assume the child issued diagnostics. - if (!e.normal ()) fail << "process " << name_bpkg (co) << " " << e; - - return e; + } } // *_manifest() -- cgit v1.1