Re: package count

Daniel Veillard <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
On Sun, Jun 06, 2004 at 06:43:24PM -0400, seth vidal wrote:
> a while back I mentioned including a package count.
> 
> So I've done this but it's not the nicest thing in the world.
> 
> When it generates the package count it puts it at the top of the xml
> like:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <metadata xmlns="http://linux.duke.edu/metadata/common" packages="13">
> 
> the problem is that if there is an error on any of the packages and it
> can't include it then that number is decremented by that package and is
> therefore incorrect.
> 
> 
> The only other real way is to write out the xml w/o it, take the final
> package count, read the file back in and edit it.
> 
> not the nicest thing in the world.
> 
> I could of course do some ugly things with a regex to make it precise
> but....
> 
> open to other suggestions.

  Just say it's indicative not normative, after all the goal is to be
able to make a progress bar :-)

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
[email protected]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
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.