summaryrefslogtreecommitdiff
path: root/macros.in
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-10-22 10:37:49 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-10-22 10:37:49 +0300
commitb457e2200bd41b0c7420e32d5c9ed5a10b082922 (patch)
tree4683c78b2fe4694422e232a42bf43aba99257fe1 /macros.in
parent4047397da1875b1e5b561e039ad6cd7d99206aa1 (diff)
downloadlibrpm-tizen-b457e2200bd41b0c7420e32d5c9ed5a10b082922.tar.gz
librpm-tizen-b457e2200bd41b0c7420e32d5c9ed5a10b082922.tar.bz2
librpm-tizen-b457e2200bd41b0c7420e32d5c9ed5a10b082922.zip
Make --httpproxy and friends work again (RhBug:529214)
- macro fiddling to pass the macros set by --httpproxy etc popt aliases to the url helper - ftp proxy and http proxy control the same thing (http proxy) now to keep things simple - while at it, add %__urlhelper_localopts for local customization needs without having to override the entire __urlhelperopts macro
Diffstat (limited to 'macros.in')
-rw-r--r--macros.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/macros.in b/macros.in
index 75949a400..ae46fcbf6 100644
--- a/macros.in
+++ b/macros.in
@@ -1186,9 +1186,13 @@ done \
%find_lang %{_rpmconfigdir}/find-lang.sh %{buildroot}
# Commands + opts to use for retrieving remote files
+# Proxy opts can be set through --httpproxy/--httpport popt aliases,
+# for any special local needs use %__urlhelper_localopts in system-wide
+# or per-user macro configuration.
%__urlhelpercmd @__CURL@
%__urlhelperopts --silent --show-error --fail --location -o
-%_urlhelper %{__urlhelpercmd} %{__urlhelperopts}
+%__urlhelper_proxyopts %{?_httpproxy:--proxy %{_httpproxy}%{?_httpport::%{_httpport}}}%{!?_httpproxy:%{nil}}
+%_urlhelper %{__urlhelpercmd} %{?__urlhelper_localopts} %{?__urlhelper_proxyopts} %{__urlhelperopts}
# \endverbatim