"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/Ocsinventory/Agent/Backend/OS/Linux/Distro/OSRelease.pm" between
Ocsinventory-Unix-Agent-2.8.0.tar.gz and Ocsinventory-Unix-Agent-2.8.1.tar.gz

About: Ocsinventory-Agent is a Linux agent for OCS Inventory NG.

OSRelease.pm  (Ocsinventory-Unix-Agent-2.8.0):OSRelease.pm  (Ocsinventory-Unix-Agent-2.8.1)
skipping to change at line 42 skipping to change at line 42
# Debian version number is set in/etc/debian_version file # Debian version number is set in/etc/debian_version file
if (-r "/etc/debian_version") { if (-r "/etc/debian_version") {
open V, "/etc/debian_version" or warn; open V, "/etc/debian_version" or warn;
foreach (<V>) { foreach (<V>) {
$version = $1 if ($_ =~ /^(\d+.*)/); $version = $1 if ($_ =~ /^(\d+.*)/);
} }
close V; close V;
chomp($version); chomp($version);
} }
# CentOS exact version number is set in /etc/centos-release file
if (-r "/etc/centos-release") {
open V, "/etc/centos-release" or warn;
foreach (<V>) {
my $version = $1 if ($_ =~ /(\d+\.\d+)./g);
}
close V;
chomp($version);
}
$common->setHardware({ $common->setHardware({
OSNAME => "$name $version", OSNAME => "$name $version",
OSVERSION => $version, OSVERSION => $version,
OSCOMMENTS => $description, OSCOMMENTS => $description,
}); });
} }
1; 1;
 End of changes. 1 change blocks. 
0 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)