From 4476d9d02ac7af21a7bc6ef92490491d308237f4 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 29 Apr 2020 22:20:21 +0300 Subject: Add --pkg-proxy common option --- bpkg/fetch-pkg.cxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'bpkg/fetch-pkg.cxx') 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 ()) { -- cgit v1.1