On Feb 18, 2005, at 3:49 PM, Fernando Laudares Camargos wrote:

I'm working in a OPD page ordered by Bernard ;-) for the new website and noticed a "detail" in the oscar_packages.xml file structure. As far as I know, we defined the tags <package> and </package> to delimit the "zone" containing the detais of a package in the list. There is at least one case where those "reserved" tags where used "inside" a package zone to delimitate other thing than the package itself:
---------------------------------------------------------------------
<requires>
<type>package</type>
<name>gm</name>
</requires>
*<package>*
<switcher>
<tag>mpi</tag>
<name>mpich-ch_gm-gcc-1.2.5.9</name>
</switcher>
*</package>*
<download>
<uri>http://www.csm.ornl.gov/oscar/repository/mpich-gm.tgz</uri>
<size>16240193</size>
<md5sum>3f90818819abbe0de103f39d0e08732e</md5sum>
<sha1sum>35f78ffdd9f4104b77450c080b6d7979d10f2164</sha1sum>
</download>
</package>
----------------------------------------------------------------------
Is this OK? Because I'm having a bad time here trying to make my parser
disregard this one possibility :-).

Yes, this is very definitely done on purpose. It's how one package tells switcher that it wants to be in the switcher configuration (i.e., it has a switcher module file). There's an ODA shortcut that Neil created for me that does a search on these things -- I use it to create the switcher configurator screen.


More specifically, any package can put a <switcher> block inside their <package> block (with an appropriate <tag> and <name>) and switcher will "see" that when it is building its configurator page.

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



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to