From 6f5df32b4b85087beee96a8e9c0ecf967ec72c3b Mon Sep 17 00:00:00 2001 From: kewl fft Date: Fri, 16 Apr 2021 08:20:52 +0100 Subject: [PATCH] lower case before test --- library/aur.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/aur.py b/library/aur.py index ee2cc3f..f1ff65b 100644 --- a/library/aur.py +++ b/library/aur.py @@ -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 'othing 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, ) @@ -275,7 +275,7 @@ def install_packages(module, packages, use, extra_args, state, skip_pgp_check, i command.append(package) rc, out, err = module.run_command(command, check_rc=True) - changed_iter = changed_iter or not (out == '' or '-- skipping' in out or 'othing to do' in out) + changed_iter = changed_iter or not (out == '' or '-- skipping' in out or 'nothing to do' in out.lower()) message = 'installed package(s)' if changed_iter else 'package(s) already installed'