[Rpm-metadata] [Fwd: Re: yum 2.1.0]
Ville Skyttä
ville.skytta at iki.fi
Fri Sep 3 19:29:34 UTC 2004
On Fri, 2004-09-03 at 21:07, seth vidal wrote:
> Take a look at this traceback. This happens after applying your patch.
> I'm going to work on it but if I remember correctly this is the reason
> why I didn't try to do too much tricky stuff with encoding conversion in
> createrepo.
Hm, I don't think it's really that much about encoding conversion, but
just that utf8string() does not check for None, and rpmObj.tagByName()
in dumpMetaData.generateXML() behaves differently with nonexistent tags
on FC1 than it does on FC2: returns None on FC1, empty string on FC2.
The attached patch is a quick fix for utf8string(); perhaps it would be
a good idea to additionally make tagByName() never return None but an
empty string instead so that it won't bite elsewhere later?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utf8string-none.patch
Type: text/x-patch
Size: 587 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/rpm-metadata/attachments/20040903/f9b918fd/attachment.bin
More information about the Rpm-metadata
mailing list