From 813cbadc187ae52413139f233e9cb1271a77eac3 Mon Sep 17 00:00:00 2001 From: grcancelliere Date: Fri, 16 Apr 2021 07:55:46 +0200 Subject: [PATCH] Fix upgrade changed logic and language definition when using pikaur --- library/aur.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/aur.py b/library/aur.py index 373d868..a56a3a3 100644 --- a/library/aur.py +++ b/library/aur.py @@ -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, )