Ticket #3 (new defect)

Opened 9 years ago

Last modified 7 years ago

createrepo and then mergerepos don't like @ unicode in

Reported by: stevetraylen Assigned to: skvidal
Priority: major Milestone:
Component: createrepo Version: 2.0
Keywords: mergrerepo, utf-8, charset Cc:



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"/>
    <rpm:license>Copyright © 2003-2007 the CentOS Project.  All rights reserved.</rpm:license>
    <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.

Change History

06/29/11 09:00:47 changed by consmylanca1972

Nice site to visit! I admire your writing and the way you explain things. Some of the comments on here too are insightful. I appreciate you. keep it up!=-=