From d861a7fecff8e900e3a65e09dc7a2e89e57b3b47 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 17 Nov 2018 18:04:53 +0300 Subject: Add --jobs common option --- bdep/update.hxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'bdep/update.hxx') diff --git a/bdep/update.hxx b/bdep/update.hxx index d79c7b2..36ce8da 100644 --- a/bdep/update.hxx +++ b/bdep/update.hxx @@ -19,7 +19,15 @@ namespace bdep const cstrings& pkgs, const strings& cfg_vars) { - run_bpkg (2, o, "update", "-d", c->path, cfg_vars, pkgs); + run_bpkg (2, + o, + (o.jobs_specified () + ? strings ({"-j", to_string (o.jobs ())}) + : strings ()), + "update", + "-d", c->path, + cfg_vars, + pkgs); } inline int -- cgit v1.1