pmbootstrap/pmb/helpers
Oliver Smith 13c4ac425b
pmb.helpers.run_core: fix proxy env var logic
Fix that the list "cmd" was turned into a string if one of the proxy
vars was set in the environment. Add a test for this code path. Before
this patch:

$ FTP_PROXY=test pmbootstrap -v --details-to-stdout status
…
% cd /home/user/.local/var/pmbootstrap/cache_git/pmaports; git remote -v
run: FTP_PROXY=test ['git', 'remote', '-v']
ERROR: [Errno 2] No such file or directory: "FTP_PROXY=test ['git', 'remote', '-v']"

Fixes: 1a00c04f ("pmb.helpers.run_core: always configure proxy vars if set in environment")
Reviewed-by: Clayton Craft <clayton@craftyguy.net>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230713182337.6185-3-ollieparanoid@postmarketos.org%3E
2023-07-21 08:54:10 +02:00
..
__init__.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
apk.py pmb.helpers.run_core: move flat_cmd here 2023-07-21 08:54:04 +02:00
aportupgrade.py Move version to pmb.__version__ 2023-04-15 01:44:37 +02:00
args.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
cli.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
devices.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
file.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
frontend.py Remove distcc support 2023-06-15 08:31:03 +02:00
git.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
http.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
lint.py lint: drop call to pmb.build.init 2023-06-15 08:30:54 +02:00
logging.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
mount.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
other.py pmb.helpers.other.validate_hostname: allow periods 2023-04-15 01:44:31 +02:00
package.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
pkgrel_bump.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
pmaports.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
repo.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
repo_missing.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
run.py pmb.helpers.run_core: fix proxy env var logic 2023-07-21 08:54:10 +02:00
run_core.py pmb.helpers.run_core: fix proxy env var logic 2023-07-21 08:54:10 +02:00
status.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
ui.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00