aboutsummaryrefslogtreecommitdiff
path: root/bdep/utility.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-12 09:41:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-12 09:41:09 +0200
commit4d181c3aad97f8ee224666ce5c757036c5f610d5 (patch)
tree84f217c524bbcd4d38b3419a72df25942232decd /bdep/utility.txx
parentd8acf937750958313b565e17eb33191e90dd4b36 (diff)
Store initialized packages for each configuration in database
Diffstat (limited to 'bdep/utility.txx')
-rw-r--r--bdep/utility.txx15
1 files changed, 8 insertions, 7 deletions
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 <typename... A>
- process_exit
+ void
run_bpkg (const common_options& co, A&&... args)
{
process pr (start_bpkg (co,
1 /* stdout */,
2 /* stderr */,
forward<A> (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()