Merge pull request #78 from jp1995/master

fix for issue #77
This commit is contained in:
kewl
2023-07-08 18:40:26 +01:00
committed by GitHub

View File

@@ -283,7 +283,7 @@ def install_packages(module, packages, use, extra_args, state, skip_pgp_check, i
command.append(package) command.append(package)
rc, out, err = module.run_command(command, check_rc=True) rc, out, err = module.run_command(command, check_rc=True)
changed_iter = changed_iter or not (out == '' or '-- skipping' in out or 'nothing to do' in out.lower()) changed_iter = changed_iter or not (out == '' or 'up-to-date -- skipping' in out or 'nothing to do' in out.lower())
message = 'installed package(s)' if changed_iter else 'package(s) already installed' message = 'installed package(s)' if changed_iter else 'package(s) already installed'