On May 25, 2005, at 3:13 PM, Lombard, David N wrote:

<filter linux_distro="redhat" linux_distro_ver="3">
        Allows only Red Hat version 3
<filter linux_distro="redhat" linux_distro_ver="3*">
        Allows Red Hat version 3<anything>, such as 3u3, 3u4, 3u5
<filter linux_distro="redhat" linux_distro_ver="3u[45]">
        Allows Red Hat version 3u4 and 3u5

It should be relatively straightforward to make perl do this kind of
regexp matching for us (perhaps some creative uses of eval, etc.).

This is actually trivial to do. The real question is regex or glob?  I
vote for glob.  Code to convert a glob to a regex is in update-rpms.

I have no opinion here. I think my only real requirement is to be able to do relatively arbitrary versioning -- such as RH EL 3 update 4 and 5, but not updates 3 and 6 (etc.).

More to the point -- the RedHat.pm OS_Detect component is going to
define what stuff will be in linux_distro_ver.  So as long as all
things that *use* RedHat.pm as their OS_Detect adhere to the same
conventions, it doesn't really matter.

True enough, but as you just demonstrated, the rules must be well-known
and predictable--and if well done, just magically work as for each new
update/release as long as the established conventions are maintained by
the distro.

Agreed. But it's also ok as long as the specific OS_Detect component documents its conventions (and then never changes them). I think this kind of stuff should go in POD format in the components themselves, which would naturally put the docs and code together in one place -- and give a single place for OSCAR package authors (and others) to go look and see what the conventions for a given platform are.

--
{+} Jeff Squyres
{+} [EMAIL PROTECTED]
{+} http://www.lam-mpi.org/



-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to