Picked patches from rpm5-yum project https://launchpad.net/yum
adjust rpm5-yum patch against current tree
Merge patches from rpm5-yum project https://launchpad.net/yum