From: [EMAIL PROTECTED] on behalf of Erich Focht
Sent: Tue 14/02/2006 10:03
To: [email protected]
Subject: [Oscar-devel] OS_Detect changes
Hi,
just checked in some major changes to OS_Detect. It
can now be used for
detecting the distro and architecture of:
- the
machine it runs on
- an image
- a package pool (guess
this makes it twice as useful as before).
Arguments and usage examples
(prepend OSCAR::OCA::OS_Detect:: to each line):
open()
: detects distro/arch installed in "/"
open($path) : detects
distro/arch in chroot directory
$path
(option kept for compatibility
reasons).
open(chroot=>$path) : detects distro/arch in chroot
directory $path
open(pool=>$pool) : detects distro/arch
of package pool $pool
A big part of the code has been moved up from the
detection modules to the
OS_Detect.pm module.
Next change to come:
validation of supported distros based on the
$id->{compat_distro} and
$id->{compat_distrover} strings.
A small query tool was added, too
(scripts/distro-query). For validation and
testing purposes, when new distro
modules are added.
The changes are applied to trunk, so might work in
OSCAR5 if they
survive.
Regards,
Erich
-------------------------------------------------------
This
SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for
problems? Stop! Download the new AJAX search engine that
makes
searching your log files as easy as surfing the web.
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Oscar-devel
mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel
