From d6247a35832d14e2c6d52ba9e6e3160b5b20b47b Mon Sep 17 00:00:00 2001 From: Richard C Isaacson Date: Fri, 7 Mar 2014 15:22:59 -0600 Subject: [PATCH] Yum: Fix logic in yum. --- library/packaging/yum | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/packaging/yum b/library/packaging/yum index 1a77cf0f0b0..eb8472ee0a9 100644 --- a/library/packaging/yum +++ b/library/packaging/yum @@ -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: