Re: Dependency relations

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

It's relatively easy to glance at the following and recognize the
ordering error; it would be tougher if the two values were
documented separately.

    version="[2.4, 2.3)"


See: http://platform.progeny.com/discover/guide.html#sc-data_element_version_attribute

--
John R. Daily                                        [email protected]
Director of Technology                            Progeny Linux Systems
                    Master of the ephemeral epiphany
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.