diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-22 10:37:49 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-10-22 10:37:49 +0300 |
commit | b457e2200bd41b0c7420e32d5c9ed5a10b082922 (patch) | |
tree | 4683c78b2fe4694422e232a42bf43aba99257fe1 /macros.in | |
parent | 4047397da1875b1e5b561e039ad6cd7d99206aa1 (diff) | |
download | librpm-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.in | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |