Yum: Fix logic in yum.

Double-checked after merging and some testing logic made it in. This is a fix for that.