Mailinglist Archive: zypp-devel (58 mails)
| < Previous | Next > |
Re: [zypp-devel] Proxy settings in libzypp
- From: Jan Kupec <jkupec@xxxxxxx>
- Date: Thu, 22 Jan 2009 13:19:50 +0100
- Message-id: <49786466.8080807@xxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Katarina Machalkova wrote:
Correction: zypp only uses $HOME/.curlrc to get the proxy user/passwd -
this is used only in case the proxy needs authentication.
- --
cheers,
jano
Ján Kupec
YaST team
- ---------------------------------------------------------(PGP)---
Key ID: 637EE901
Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901
- ---------------------------------------------------------(IRC)---
Server: irc.freenode.net
Nick: jniq
Channels: #zypp #yast #suse #susecz
- ---------------------------------------------------------(EOF)---
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iEYEARECAAYFAkl4ZGYACgkQgEhGpmN+6QGUlQCfRR7ZlHvKeRI2QBE26iyGYj1X
4lAAoIQ9poThtn0wOuipOqnd0NhbgTdE
=rxpa
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
Hash: SHA1
Katarina Machalkova wrote:
Hi, zypp hackers :)
When it comes to $http_proxy * & friends handling, libzypp uses a mix of two
or even three approaches:
* it honors $http_proxy from the environment, probably because libcurl does
so
and libzypp explicitely does not unset this variable
* in addition to that, it reads /root/.curlrc and gets proxy URL (optionally
also user/passwd) from there
Correction: zypp only uses $HOME/.curlrc to get the proxy user/passwd -
this is used only in case the proxy needs authentication.
* last, but not least, proxy can be provided as a part of repository URL
I'm wondering what is the incentive behind combining all these three
approaches, instead of e.g. reading only $http_proxy (curl can already accept
URL in the form of http://user:pass@xxxxxxxxxxxxxx so we don't necessarily
need .curlrc for reading this data - is .curlrc used because we can't
effectively setenv. during installation?).
Or alternatively, libzypp could read only .curlrc, as it contains all the
necessary information and ignore $http_proxy completely. Reading recent user
complaints on Factory, it would be much more comfortable for those using GUI
package managers, as they wouldn't have to re-login in order to apply their
proxy setting
Proxy as a part of repository URL is a cherry on top of the cake, but I doubt
many users know about this option and make real use of it.
B.
*) and other *TP proxies, I'm referencing http only because of simplicity
- --
cheers,
jano
Ján Kupec
YaST team
- ---------------------------------------------------------(PGP)---
Key ID: 637EE901
Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901
- ---------------------------------------------------------(IRC)---
Server: irc.freenode.net
Nick: jniq
Channels: #zypp #yast #suse #susecz
- ---------------------------------------------------------(EOF)---
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iEYEARECAAYFAkl4ZGYACgkQgEhGpmN+6QGUlQCfRR7ZlHvKeRI2QBE26iyGYj1X
4lAAoIQ9poThtn0wOuipOqnd0NhbgTdE
=rxpa
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |