Yum: Fix logic in yum.
Merge pull request #6334 from risaacson/pull_6033

Yum: Fix logic in yum.