Rename def_lang to env and remove locale env vars

pull/79/head
Lucas Gabriel 2023-09-28 05:31:18 -03:00
parent fe050018db
commit ae769d902c
1 changed files with 3 additions and 3 deletions

6
plugins/modules/aur.py Normal file → Executable file
View File

@ -106,7 +106,7 @@ EXAMPLES = '''
become_user: aur_builder become_user: aur_builder
''' '''
def_lang = ['env', 'LC_ALL=C', 'LANGUAGE=C'] env = ['env']
use_cmd = { use_cmd = {
'yay': ['yay', '-S', '--noconfirm', '--needed', '--cleanafter'], 'yay': ['yay', '-S', '--noconfirm', '--needed', '--cleanafter'],
@ -161,9 +161,9 @@ def build_command_prefix(use, extra_args, skip_pgp_check=False, ignore_arch=Fals
Create the prefix of a command that can be used by the install and upgrade functions. Create the prefix of a command that can be used by the install and upgrade functions.
""" """
if local_pkgbuild: if local_pkgbuild:
command = def_lang + use_cmd_local_pkgbuild[use] command = env + use_cmd_local_pkgbuild[use]
else: else:
command = def_lang + use_cmd[use] command = env + use_cmd[use]
if skip_pgp_check: if skip_pgp_check:
command.append('--skippgpcheck') command.append('--skippgpcheck')
if ignore_arch: if ignore_arch: