On Friday 01 July 2005 12:48, Jeff Squyres wrote:
> On Jun 30, 2005, at 1:37 PM, Erich Focht wrote:
> 
> > I finally had a look at the OS_Detect framework. Saw that it's 
> > currently
> > poorly populated. Is it used by any component? It's not 100% clear how 
> > I
> > should invole and use this. Could the author please post an example?
> 
> I actually posted a lengthy explanation of this when we first 
> introduced it into the tree.  Specifically, we bashed out the specifics 
> of the OCA and the OS_Detect framework at the OSCAR Symposium in 
> Canada, but ran out of time before doing heavy integration.  It's still 
> an active to-do item for someone to integrate using OS_Detect 
> throughout the OSCAR code base...
> 
> Troll through the mail archives to find that prior mail from me.

Found it, was an email from Mai 18. Thanks.

> > I saw that the framework is tied to the master. Well, hmmm, it would 
> > me VERY
> > usefull if one could apply this to an image and find out what distro it
> > contains. In the long term I'd expect images to have different distros 
> > than
> > the master. Would be nice to have OS_Detect prepared for that.
> 
> Sure, that would be a useful extension.  Suggestions?

OSCAR::OCA::OS_Detect::open(image => $imagename);

should grab the corresponding path from the image database in ODA, check the
release files inside. Architecture should come either from the database or
from a query to some kernel RPM installed in the image. For RPM based
distros. I prefer the database query. If the "image" argument isn't set, fall
back to querying the machine we run on and use uname.

Regards,
Erich




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to