Red Hat Bugzilla – Bug 528746
Fix the return code for "yum reinstall"
Last modified: 2014-01-21 01:15:22 EST
Description of problem:
This would be a backport of 512393, which is a one line fix.
The way reinstall is done in rpm is that you remove the current version, and then install the exact same version. However rpm treats the install is an update, and so doesn't like the explicit remove (because then it thinks it's removing it twice).
This causes a minor failure which rpm then reports to yum, and so yum exists with a "minor failure occured" exit code.
The fix we did is to just remove the "remove operation" from the transaction when we add the install. This seems to work fine upstream/Fedora ... and is probably safe enough to include as a backport.
adding qa keyword:
(In reply to comment #4)
> adding qa keyword:
jobs with rhel54, failure
jobs with rhel55, passed
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.