Hi all, I have attached an external repo to one of my build tags. After attaching the repo, I issued a "koji regen-repo <tag>". This is what I get:
1348/2199 - kde-l10n-Walloon-4.2.2-1.fc11.noarch 1349/2199 - kde-l10n-Lithuanian-4.2.2-1.fc11.noarch 1350/2199 - 1:perl-Error-0.17015-2.fc11.noarch Traceback (most recent call last): File "/usr/libexec/kojid/mergerepos", line 241, in <module> main(sys.argv[1:]) File "/usr/libexec/kojid/mergerepos", line 236, in main merge.write_metadata() File "/usr/libexec/kojid/mergerepos", line 216, in write_metadata mdgen.doPkgMetadata() File "/usr/lib/python2.5/site-packages/createrepo/__init__.py", line 364, in doPkgMetadata self.writeMetadataDocs(packages) File "/usr/lib/python2.5/site-packages/createrepo/__init__.py", line 527, in writeMetadataDocs self.primaryfile.write(po.xml_dump_primary_metadata()) File "/usr/lib/python2.5/site-packages/yum/packages.py", line 1015, in xml_dump_primary_metadata msg += misc.to_unicode(self._dump_format_items()) File "/usr/lib/python2.5/site-packages/yum/packages.py", line 894, in _dump_format_items msg += self._dump_pco('provides') File "/usr/lib/python2.5/site-packages/yum/packages.py", line 919, in _dump_pco msg += pcostring UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 28: ordinal not in range(128)
Unicode error? I don't get it! Any pointers?
Regards, Jitesh
Aaah .. some RPMs have unicode in their 'provides' tag which causes this problem. Temporarily, I have removed those from the external repo and it works fine :)
Jitesh
On Fri, 2009-06-05 at 06:46 -0700, Jitesh Shah wrote:
Hi all, I have attached an external repo to one of my build tags. After attaching the repo, I issued a "koji regen-repo <tag>". This is what I get:
1348/2199 - kde-l10n-Walloon-4.2.2-1.fc11.noarch 1349/2199 - kde-l10n-Lithuanian-4.2.2-1.fc11.noarch 1350/2199 - 1:perl-Error-0.17015-2.fc11.noarch Traceback (most recent call last): File "/usr/libexec/kojid/mergerepos", line 241, in <module> main(sys.argv[1:]) File "/usr/libexec/kojid/mergerepos", line 236, in main merge.write_metadata() File "/usr/libexec/kojid/mergerepos", line 216, in write_metadata mdgen.doPkgMetadata() File "/usr/lib/python2.5/site-packages/createrepo/__init__.py", line 364, in doPkgMetadata self.writeMetadataDocs(packages) File "/usr/lib/python2.5/site-packages/createrepo/__init__.py", line 527, in writeMetadataDocs self.primaryfile.write(po.xml_dump_primary_metadata()) File "/usr/lib/python2.5/site-packages/yum/packages.py", line 1015, in xml_dump_primary_metadata msg += misc.to_unicode(self._dump_format_items()) File "/usr/lib/python2.5/site-packages/yum/packages.py", line 894, in _dump_format_items msg += self._dump_pco('provides') File "/usr/lib/python2.5/site-packages/yum/packages.py", line 919, in _dump_pco msg += pcostring UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 28: ordinal not in range(128)
Unicode error? I don't get it! Any pointers?
Regards, Jitesh
-- Fedora-buildsys-list mailing list Fedora-buildsys-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
aah... may be.. I just assumed it was unicode because it wasn't ASCII ... ignorance :)
Regards, Jitesh
PS: Mailing from a crappy mail client. Please ignore any formatting issues. ________________________________________ From: fedora-buildsys-list-bounces@redhat.com [fedora-buildsys-list-bounces@redhat.com] On Behalf Of Seth Vidal [skvidal@fedoraproject.org] Sent: Friday, June 05, 2009 8:46 PM To: Discussion of Fedora build system Subject: Re: mergerepos issue
On Fri, 5 Jun 2009, Jitesh Shah wrote:
Aaah .. some RPMs have unicode in their 'provides' tag which causes this problem. Temporarily, I have removed those from the external repo and it works fine :)
I bet the provides did not have unicode but had random other encoding.
-sv
-- Fedora-buildsys-list mailing list Fedora-buildsys-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
Would just like to add that createrepo/yum seem to handle the unicode/random encoding pretty well.
Jitesh
________________________________________ From: fedora-buildsys-list-bounces@redhat.com [fedora-buildsys-list-bounces@redhat.com] On Behalf Of Jitesh Shah [jiteshs@marvell.com] Sent: Saturday, June 06, 2009 4:22 PM To: Discussion of Fedora build system Subject: RE: mergerepos issue
aah... may be.. I just assumed it was unicode because it wasn't ASCII ... ignorance :)
Regards, Jitesh
PS: Mailing from a crappy mail client. Please ignore any formatting issues. ________________________________________ From: fedora-buildsys-list-bounces@redhat.com [fedora-buildsys-list-bounces@redhat.com] On Behalf Of Seth Vidal [skvidal@fedoraproject.org] Sent: Friday, June 05, 2009 8:46 PM To: Discussion of Fedora build system Subject: Re: mergerepos issue
On Fri, 5 Jun 2009, Jitesh Shah wrote:
Aaah .. some RPMs have unicode in their 'provides' tag which causes this problem. Temporarily, I have removed those from the external repo and it works fine :)
I bet the provides did not have unicode but had random other encoding.
-sv
-- Fedora-buildsys-list mailing list Fedora-buildsys-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
-- Fedora-buildsys-list mailing list Fedora-buildsys-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
buildsys@lists.fedoraproject.org