Rob OpenSuSE wrote:
2009/1/21 Dave Plater
: Does this mean it is possible to disable proxy use by libzypp without relogin?
environ(7) explains editting the environment of current process, which affects forked children. But that does not affect parent processes, it's a local not global change. So in general no.
For curl usage by YaST, always nullify http_proxy and only use ~root/.curlrc, or manage it's own setting somewhere to overwrite the _proxy variables, might be a solution.
From curl(1)
-x/--proxy
Use specified HTTP proxy. If the port number is not specified, it is assumed at port 1080. This option overrides existing environment variables that sets proxy to use. If there's an environment variable setting a proxy, you can set proxy to "" to override it.
Ok I just tested, I disabled proxy via yast and then shut squid down. ..curl was then cleaned out but the variable $http_proxy still contained the proxy address and zypper ref failed. I then export http_proxy= and zypper ref worked correctly. From this I would conclude yast proxy settings should clear the environment variable when proxy is disabled and the problem of logout/login being required would be solved, would you agree? Regards Dave P -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org