From: Jeff Squyres on Wednesday, May 25, 2005 10:49 AM > > From this standpoint, it seems that having 1 tag would be better > (linux_distro_ver), because we can allow limited regexps in there. > Consider the following examples: > > <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. > 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. -- David N. Lombard My comments represent my opinions, not those of Intel Corporation. ------------------------------------------------------- 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_idt02&alloc_id135&op=click _______________________________________________ Oscar-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oscar-devel
