aboutsummaryrefslogtreecommitdiff
path: root/bpkg/fetch-pkg.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-04-29 22:20:21 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-05-01 18:10:37 +0300
commit4476d9d02ac7af21a7bc6ef92490491d308237f4 (patch)
tree78fe722595c6303c244a9dc421ce6c15d2165fb6 /bpkg/fetch-pkg.cxx
parentef30db48d9a910fa06a94a07d231f32a8fce0e46 (diff)
Add --pkg-proxy common option
Diffstat (limited to 'bpkg/fetch-pkg.cxx')
-rw-r--r--bpkg/fetch-pkg.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/bpkg/fetch-pkg.cxx b/bpkg/fetch-pkg.cxx
index 67ee3a9..81d4131 100644
--- a/bpkg/fetch-pkg.cxx
+++ b/bpkg/fetch-pkg.cxx
@@ -24,7 +24,11 @@ namespace bpkg
bool ignore_unknown)
{
string url (u.string ());
- process pr (start_fetch (o, url));
+ process pr (start_fetch (o,
+ url,
+ path () /* out */,
+ string () /* user_agent */,
+ o.pkg_proxy ()));
try
{
@@ -94,7 +98,11 @@ namespace bpkg
fail << "file " << df << " already exists";
auto_rmfile arm (df);
- process pr (start_fetch (o, u.string (), df));
+ process pr (start_fetch (o,
+ u.string (),
+ df,
+ string () /* user_agent */,
+ o.pkg_proxy ()));
if (!pr.wait ())
{