one additional attribute

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
Hi, 
 Some of you might be following my bits of strife with speeding up the
importing of the metadata using python and libxml2.

I've gotten the code to a point using the xmlReader interface to libxml2
- ran into a snag of having no way to produce an intelligent progress
callback for feeding back into an interface to give the user some
estimate of when it would be done.

so I'm wondering if everyone thinks it would be ok to add a total
packages counter attribute to the first tag in the metadata ie:

primary.xml:
<metadata packagecount="1610">

filelists.xml:
<filelists packagecount="1610">

otherdata.xml:
<otherdata packagecount="1610">

it shouldn't disrupt any other parsers but it would mean nicer progress
callbacks for those folks who will hopefully use the importing routines
in python.

Does this sound ok?

Thanks
-sv
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.