From 9dd9db62961baf3235ba1bcab92302e5ff27c595 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Mon, 29 Oct 2012 13:48:20 -0400 Subject: [PATCH] fix removal case where first pkg in a list is not installed at all and the next one gets ignored despite being installed. also clean up unnecessary second check. --- yum | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/yum b/yum index f28009ff1e0..7998b3af168 100755 --- a/yum +++ b/yum @@ -440,13 +440,9 @@ def remove(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos): else: pkglist = is_installed(module, repoq, spec, conf_file, en_repos=en_repos, dis_repos=dis_repos) if not pkglist: - res['msg'] += "No Package matching '%s' found installed" % spec - module.exit_json(**res) - - found = False - for this in pkglist: - if is_installed(module, repoq, this, conf_file, en_repos=en_repos, dis_repos=dis_repos): - found = True + found = False + else: + found = True if not found: res['results'].append('%s is not installed' % spec)