diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-02-15 15:00:12 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2017-04-05 15:02:25 -0400 |
commit | bd49dd6f28b67692e001d95f0d1bc388ba16541c (patch) | |
tree | e88c5299bfa84521f42434fe5ab4696b8b49c802 /lib/archroot.sh | |
parent | 8b3a673607d048cd738fae150cd338670609990c (diff) | |
download | devtools32-lukeshu/to-upstream/likely-20170405.tar.xz |
mkarchroot: Don't let the environment affect pacstrap (sans proxy settings).lukeshu/to-upstream/likely-20170405
A previous iteration of this change (libretools commit d7dcce53396d)
simply inserted `env -i` to clear the environment.
However, that lead to it ignoring proxy settings, which some users had
problems with:
https://labs.parabola.nu/issues/487:
> To fix other bugs, the pacstrap environment is blank, which also
> means that the proxy settings are blank.
So (in libretools commit d17d1d82349f), I changed it to use `declare
-x` to inspect the environment, and create a version of it only
consisting of variables ending with "_proxy" (case-insensitive).
I honestly don't remember what "other bugs" prompted me to clear the
environment in the first place.
Diffstat (limited to 'lib/archroot.sh')
0 files changed, 0 insertions, 0 deletions