[Rpm-metadata] Update 0.4.11-0.9.8: AttributeError: 'module' object has no attribute 'RPMSENSE_PREREQ'
Anders F Björklund
afb at algonet.se
Tue Sep 14 21:40:55 UTC 2010
David C. Rankin wrote:
> I updated my createrepo install to the current 0.9.8 package on my
> Arch Linux server. I have 4 openSUSE repos I maintain. All updates
> with createrepo worked fine with 0.4.11. After updating to the
> following:
>
> [...]
> File "/usr/lib/python2.6/site-packages/yum/packages.py", line
> 1359, in _is_pre_req
> rpm.RPMSENSE_SCRIPT_PRE |
> AttributeError: 'module' object has no attribute 'RPMSENSE_PREREQ'
>
> I know very little about python, so I need a bit of help on
> where I should start trying to figure out what is going on. Any ideas?
Yum needs a patch to work with 4.4.3 and beyond (such as your 5.1.9)
Easiest is just adding the enum values, rather than conditionals...
--anders
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-yum-packages.py
Type: text/x-python-script
Size: 765 bytes
Desc: not available
URL: <http://lists.baseurl.org/pipermail/rpm-metadata/attachments/20100914/8247139c/attachment.bin>
More information about the Rpm-metadata
mailing list