2009/1/21 Dominique Leuenberger <Dominique.Leuenberger@tmf-group.com>:
On 1/21/2009 at 1:15 PM, Dave Plater <dave.plater@yahoo.co.uk> wrote: 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?
You can't clear an environment variable from a parent process (shell). This is simply not possible.
Check this schema
bash (env0) yast2 (env0.1) yast2-doSomething (env0.1.1) zypper (env0.2)
Whenever you spawn a child process, the environment from the parent is copied and that's the only environment you can modify. So if yast-doSomething would clear the http_proxy, that would be completely useless for a later start of zypper, as it will copy env0 again and create 0.2... so no go at all...
OK, i don't aknowledged with curl\libcurl (which libzypp uses?) Is there a way to force all curl calls from libzypp to use only ~/.curlrc settings? (which yast can control) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org