Fix for Yum >=3.0.0