On 09/14/2010 12:35 PM, David C. Rankin wrote:
Guys,

How do I fix the yum-createrepo PKGBUILD so that yum-createrepo looks for the
module 'rpm-org' instead of looking for the outdated 'rpm' module? In the
PKGBUILD, the depends currently is:

depends=('python' 'python-lxml' 'rpm' 'yum')

However, 'rpm-org' now provides 'rpm' so the depends line needs to be:

depends=('python' 'python-lxml' 'rpm-org' 'yum')

The problem is that when you build yum-createrepo with 'rpm-org' it fails with
the following error:

[12:19 archangel:/home/backup/rpms] # createrepo --update -d openSUSE_11.3/
Traceback (most recent call last):
File "/usr/share/createrepo/genpkgmetadata.py", line 28, in <module>
import createrepo
File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 22, in
<module>
import yumbased
File "/usr/lib/python2.6/site-packages/createrepo/yumbased.py", line 19, in
<module>
import rpm
ImportError: No module named rpm

So it looks to me like it tries to 'import rpm' and fails because 'package rpm'
isn't installed, instead the new package 'rpm-org' is installed and provides 
rpm:


Here is a bit more info from the createrepo guys on the rpm/rpm-org module 
issue:

<david_atty> Ok, I have beecrypt, rpm-org, yum-metadata-parser, python-iniparse, yum, and yum-createrepo installed, but I have a 'modules' problem because 'rpm-org' provides rpm for Arch and not a 'rpm' package. How do I fix createrepo to look for module 'rpm-org' instead of 'rpm'?
<geppetto> AFAIK you can't have modules with a hyphen in them
<geppetto> And, IMNSHO, calling the rpm module anything but rpm is insanity
<geppetto> Either call rpm5 the rpm5 module … or fix it to make it compatible
<geppetto> Or give up
<david_atty> hmm.. I agree, can I symlink something in the python dir?
<geppetto> Yeh, AFAIK symlinks work fine there … although as with anything you have the rpm problem where you can't change from a symlink to a dir. or back <david_atty> The funny thing is the executable 'rpm' is there and works fine, I'll poke around in python (which I no nothing about) to see if I can find the rpm-org module and either link or try to rebuild it so it thinks it's rpm. Thanks.

Your thoughts devs?


--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com

Reply via email to