aboutsummaryrefslogtreecommitdiff
path: root/bdep/utility.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-12-05 12:31:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-12-05 12:31:45 +0200
commit1bcba2c1b09f440e4017d5aeb411e5efaf08b809 (patch)
treea85431ed33b9a80b5be9d31aacb2542d0302e696 /bdep/utility.txx
parent59cd10b43f9b084aebae6258541d53c8870e969b (diff)
Forward --curl* options to bpkg
Diffstat (limited to 'bdep/utility.txx')
-rw-r--r--bdep/utility.txx14
1 files changed, 14 insertions, 0 deletions
diff --git a/bdep/utility.txx b/bdep/utility.txx
index 12bc06c..100ee07 100644
--- a/bdep/utility.txx
+++ b/bdep/utility.txx
@@ -135,6 +135,20 @@ namespace bdep
ops.push_back (o.c_str ());
}
+ // Forward our --curl* options.
+ //
+ if (co.curl_specified ())
+ {
+ ops.push_back ("--curl");
+ ops.push_back (co.curl ().string ().c_str ());
+ }
+
+ for (const string& o: co.curl_option ())
+ {
+ ops.push_back ("--curl-option");
+ ops.push_back (o.c_str ());
+ }
+
return process_start_callback (
[v] (const char* const args[], size_t n)
{