On Fri, Mar 07, 2008 at 09:07:12PM +0200, Gabor Szabo wrote: > Is the detailed name and version of the OS (e.g Ubuntu Linux 7.10 ) available > in the Test reports?
No. > I think Sys::Info can provide this data. It's also something that someone asked me to add to Devel::CheckOS, so that he could check that his code for doing something Redhat-specific was actually being installed on Redhat. Unfortunately I only have access to Debian. If anyone wants to write Devel::AssertOS::Linux::Redhat and upload it, then please do, and the same for other distributions! You'd need to take this file: http://search.cpan.org/src/DCANTRELL/Devel-CheckOS-1.42/lib/Devel/AssertOS/Linux/v2_6.pm make the package name something like Devel::AssertOS::Linux::Redhat, and change the os_is function. I assume that in most cases that'll be something as easy as: sub os_is { -e '/etc/redhat-version' } or something like that. -- David Cantrell | Hero of the Information Age Vegetarian: n: a person who, due to malnutrition caused by poor lifestyle choices, is eight times more likely to catch TB than a normal person