Red Hat Bugzilla – Bug 207015
mock-0.6-4 doesn't work with yum-2.9.6
Last modified: 2013-01-09 23:04:26 EST
Description of problem:
mock doesn't work with new yum
Version-Release number of selected component (if applicable):
mock--.1 doesn't work with yum-2.9.6-1
Steps to Reproduce:
Traceback (most recent call last):
File "/usr/bin/mock", line 986, in ?
File "/usr/bin/mock", line 981, in main
File "/usr/bin/mock", line 855, in ensure_filetype_srpm
ts = rpmUtils.transaction.initReadOnlyTransaction()
AttributeError: 'module' object has no attribute 'transaction'
Created attachment 143661 [details]
patch to handle rpmUtils import change
I haven't been able to recreate your problem, probably because I haven't been
able to track down an old version of yum.
Would you please try the attached transaction patch on your mock.py and see if
it fixes your problem?
Sorry, but i can't test it now because haven't old version of yum.
Propose to close the bug.
Yeah, I haven't been able to duplicate it. We'll close it and hope for the best :)