Re: 2 commits - createrepo/__init__.py

James Antill <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Organization Fedora
Message-ID <[email protected]>
On Mon, 2009-04-06 at 16:13 +0200, Duncan Mac-Vicar Prett wrote:
> [email protected] wrote:
> >  createrepo/__init__.py |   15 ++++++++-------
> >  1 file changed, 8 insertions(+), 7 deletions(-)
> > 
> > New commits:
> > commit 69199d9106f63aeafd5e957390b0472f4d30a0ab
> > Author: Seth Vidal <[email protected]>
> > Date:   Tue Feb 3 09:08:25 2009 -0500
> > 
> >     and one more mistake
> 
> I see the generation of prestodeltatag is used. I remember that I talked
> with yum-presto author long time ago to use "deltainfo" as something
> more neutral for rpm-md and he agreed on this.
> 
> Our build system generate "deltainfo", however our parsers recognize
> also prestodelta. Does yum-presto recognize the deltainfo tag already?

 The client side basically just does:

        for event, elem in iterparse(open(filename, 'rt')):
            if elem.tag == "newpackage":
                p = NewPackage(elem)
                self.deltainfo[p.nevra()] = p

...so it doesn't matter what the top level element is called.

-- 
James Antill <[email protected]>
Fedora
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.