Description of problem:
We do rpmdb version checks on install, when history isn't being recorded. This is pretty bad as a lot of work is done for every install if a user turns off history recording.
We do rpmdb version checks in the version command, but normal users can't see history by default ... so they end up checking the rpmdb all the time too.
Both are basically one line patches, although the first looks worse as we have to change indentation for about 6 lines.
Note that both these problems _only_ make yum slower, in somewhat edge cases (although customers who've turned history off might disagree ;).
Version-Release number of selected component (if applicable):
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
Quality Engineering Management has reviewed and declined this request. You may
appeal this decision by reopening this request.