From ae769d902c9199cac87e3519ad3a46a277d057a4 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Date: Thu, 28 Sep 2023 05:31:18 -0300 Subject: [PATCH] Rename def_lang to env and remove locale env vars --- plugins/modules/aur.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 plugins/modules/aur.py diff --git a/plugins/modules/aur.py b/plugins/modules/aur.py old mode 100644 new mode 100755 index 049955f..f976d5c --- a/plugins/modules/aur.py +++ b/plugins/modules/aur.py @@ -106,7 +106,7 @@ EXAMPLES = ''' become_user: aur_builder ''' -def_lang = ['env', 'LC_ALL=C', 'LANGUAGE=C'] +env = ['env'] use_cmd = { '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. """ if local_pkgbuild: - command = def_lang + use_cmd_local_pkgbuild[use] + command = env + use_cmd_local_pkgbuild[use] else: - command = def_lang + use_cmd[use] + command = env + use_cmd[use] if skip_pgp_check: command.append('--skippgpcheck') if ignore_arch: