Re: [RHEL6-BRANCH 1/2] set PROXY environmental variables (#800388)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/anaconda b/anaconda
> index b17d0e5..e5a226d 100755
> --- a/anaconda
> +++ b/anaconda
> @@ -729,14 +729,22 @@ if __name__ == "__main__":
>      if opts.proxy:
>          anaconda.proxy = opts.proxy
>  
> +        # Set environmental variables to be used by pre/post scripts
> +        log.debug("PROXY=%s", opts.proxy)

I don't know that this needs to be logged.

> +        os.environ['PROXY'] = anaconda.proxy
> +        # For wget/curl use
> +        os.environ['http_proxy'] = anaconda.proxy
> +
>          if opts.proxyAuth:
>              filename = opts.proxyAuth
>              ret = open(filename, "r").readlines()
>              os.unlink(filename)
>  
>              anaconda.proxyUsername = ret[0].rstrip()
> +            os.environ['PROXY_USER'] = anaconda.proxyUsername
>              if len(ret) == 2:
>                  anaconda.proxyPassword = ret[1].rstrip()
> +                os.environ['PROXY_PASSWORD'] = anaconda.proxyPassword

Hm, is there a difference in environment variables that are defined but
empty, and ones that are not defined at all?  If so, perhaps this is
going to trip something up.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux