[Rpm-metadata] package count
Daniel Veillard
veillard at redhat.com
Mon Jun 7 09:18:15 UTC 2004
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/
veillard at redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
More information about the Rpm-metadata
mailing list