Re: Dependency relations

Daniel Veillard <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
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/
[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.