mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Yum: Fix logic in yum.
This commit is contained in:
parent
47b2dc611c
commit
d6247a3583
1 changed files with 1 additions and 1 deletions
|
@ -545,7 +545,7 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
|
|||
# determine if this is a downgrade, and then use the yum downgrade command to install the RPM.
|
||||
split_pkg_name = splitFilename(spec)
|
||||
# if the Name and Version match a version was not provided and this is not a downgrade.
|
||||
if split_pkg_name[0] == split_pkg_name[1]:
|
||||
if split_pkg_name[0] != split_pkg_name[1]:
|
||||
pkg_name = split_pkg_name[0]
|
||||
pkgs = is_installed(module, repoq, pkg_name, conf_file, en_repos=en_repos, dis_repos=dis_repos, is_pkg=True)
|
||||
if pkgs:
|
||||
|
|
Loading…
Reference in a new issue