aboutsummaryrefslogtreecommitdiff
path: root/bdep/update.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/update.hxx')
-rw-r--r--bdep/update.hxx10
1 files changed, 9 insertions, 1 deletions
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