From 996aba4f0989de1fa2b8cf13ef482bf228bd410e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 29 Jun 2023 14:55:44 +0300 Subject: Add --sys-sudo options for sync and init commands --- bdep/sync.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bdep/sync.cxx') diff --git a/bdep/sync.cxx b/bdep/sync.cxx index 4978169..45ee46c 100644 --- a/bdep/sync.cxx +++ b/bdep/sync.cxx @@ -1714,6 +1714,9 @@ namespace bdep (so.no_fetch ? "--sys-no-fetch" : nullptr), (so.no_stub ? "--sys-no-stub" : nullptr), (so.yes ? "--sys-yes" : nullptr), + (so.sudo + ? cstrings ({"--sys-sudo", so.sudo->c_str ()}) + : cstrings ()), args)); // Shouldn't throw, unless something is severely damaged. -- cgit v1.1