Running
yum-3.2.21-2.fc10.noarch
createrepo-0.9.6-3.fc10.noarch
on FC10
against a mirror of CENTOS 5 produces.
17/2458 - CentOS/bsh-demo-1.3.0-9jpp.1.i386.rpm
iso-8859-1 encoding on Copyright � 2003-2007 the CentOS Project. All rights reserved.
but does apparently work producing valid XML.
A subsequent mergerepo of these however fail with
in _dump_format_items
msg += self._dump_pco('provides')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position
38: ordinal not in range(128)
A work around that seems to be okay for me:
After the createrepo edit the primary.xml.gz
to remove the copyright symbol from
<location href="CentOS/redhat-logos-4.9.99-8.el5.centos.noarch.rpm"/>
<format>
<rpm:license>Copyright © 2003-2007 the CentOS Project. All rights reserved.</rpm:license>
<rpm:vendor>CentOS</rpm:vendor>
<rpm:group>System Environment/Base</rpm:group>
followed by
modifyrepo primary.xml.gz .../repordir
and then mergrerepo worked okay. Clearly not a real fix but...
(These repos won't be shared beyond this box)
The same thing is observed with
createrepo-0.9.6-12.fc11.src.rpm
yum-3.2.21-16.fc11.src.rpm
from current rawhide.