Mailinglist Archive: opensuse-factory (341 mails)
| < Previous | Next > |
Re: [opensuse-factory] ZYpp switch to aria2c as default
- From: "Duncan Mac-Vicar P." <dmacvicar@xxxxxxx>
- Date: Fri, 27 Feb 2009 15:01:04 +0100
- Message-id: <49A7F220.9040204@xxxxxxx>
Dave Plater wrote:
file is there, but if it is, not to download it. curl can do a head
request only. This is use for repository probing for example.
libcurl respects the environment variables http_proxy, ftp_proxy,
all_proxy etc, if any of those are set. The CURLOPT_PROXY
<http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPROXY>
option does however override any possibly set environment variables.
Setting the proxy string to "" (an empty string) will explicitly disable
the use of a proxy, even if there is an environment variable set for it.
I need to make sure we set the option to "" if the proxy was disabled on
sysconfig, I guess.
Duncan
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
This doesn't answer your question but aria2c, from what I have observed,No, the usecase is different. Sometimes libzypp wants to know if the
does a very good job of checking file existence on mirrors by itself.
That is as long a http://download.opensuse.org is used and maybe the
easier approach is to rely more on aria2c's reporting. Don't quite know
how the refresh process works though but this is so as far as package
download is concerned.
file is there, but if it is, not to download it. curl can do a head
request only. This is use for repository probing for example.
To shed a bit of light according toI found my answer:
https://bugzilla.novell.com/show_bug.cgi?id=458708#c7 /root/.curlrc
overrides the environment variable and various program options I have
seen override option files and environment variables. i.e. if libzypp
passes an option from its config file it will override all others. Sorry
I can't think of a zypp.conf option to actually test this with.
Regards
Dave P
libcurl respects the environment variables http_proxy, ftp_proxy,
all_proxy etc, if any of those are set. The CURLOPT_PROXY
<http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPROXY>
option does however override any possibly set environment variables.
Setting the proxy string to "" (an empty string) will explicitly disable
the use of a proxy, even if there is an environment variable set for it.
I need to make sure we set the option to "" if the proxy was disabled on
sysconfig, I guess.
Duncan
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
| < Previous | Next > |