get_makepkg_env(): filter out CI variables

This commit is contained in:
InsanePrawn 2022-05-07 02:00:51 +02:00
parent 6917347219
commit b13b00e85b

View file

@ -31,7 +31,7 @@ pacman_cmd = [
def get_makepkg_env():
# has to be a function because calls to `config` must be done after config file was read
threads = config.file['build']['threads'] or multiprocessing.cpu_count()
return os.environ.copy() | {
return {key: val for key, val in os.environ.items() if not key.split('_', maxsplit=1)[0] in ['CI', 'GITLAB', 'FF']} | {
'LANG': 'C',
'CARGO_BUILD_JOBS': str(threads),
'MAKEFLAGS': f"-j{threads}",