Skip to content

Commit

Permalink
lower case before test
Browse files Browse the repository at this point in the history
  • Loading branch information
kewlfft committed Apr 16, 2021
1 parent 9323088 commit 6f5df32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/aur.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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'

Expand Down

0 comments on commit 6f5df32

Please sign in to comment.