[Rpm-metadata] Dependency relations
Daniel Veillard
veillard at redhat.com
Wed Jun 2 14:53:18 UTC 2004
On Fri, May 28, 2004 at 01:59:27PM -0500, John Daily wrote:
> > Requires: python >= 2.3, python < 2.4
>
> With Discover 2 we faced the same problem (representing version
> ranges in XML). We chose to use interval notation:
>
> version="[2.3, 2.4)"
>
> If all that was available was a lower bound, we used "inf":
>
> version="[2.3, inf)"
>
> We felt it was much more concise and easier to visually parse.
yes but you need another layer of parsing instead of simply reusing
the XML for expressing that structure. If you want to go to human readability
use the spec file, for automated processing XML is the right way.
I.e. I don't think it's a good idea in this case.
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