Fix upgrade changed logic and language definition when using pikaur

pull/56/head
grcancelliere 2021-04-16 07:55:46 +02:00
parent dc101ae394
commit 813cbadc18
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ EXAMPLES = '''
become_user: aur_builder
'''
def_lang = ['env', 'LC_ALL=C']
def_lang = ['env', 'LC_ALL=C', 'LANGUAGE=C']
use_cmd = {
'yay': ['yay', '-S', '--noconfirm', '--needed', '--cleanafter'],
@ -244,7 +244,7 @@ def upgrade(module, use, extra_args, aur_only):
rc, out, err = module.run_command(command, check_rc=True)
module.exit_json(
changed=not (out == '' or 'nothing to do' in out or 'No AUR updates found' in out),
changed=not (out == '' or 'nothing to do' in out.lower() or 'No AUR updates found' in out),
msg='upgraded system',
helper=use,
)