yumUtils.oldUtils contains a lot of errors and is completely unusable. I suggest to review the code and fix it. I already fixed most annoying errors (see my patch).
*** This bug has been marked as a duplicate of bug 491077 ***