fixing bug 3764, add osminor version for sles.

This commit is contained in:
wanghuaz 2013-09-10 14:50:04 +08:00
parent 6c6f954ff8
commit 73cf93f36b

View File

@ -451,6 +451,12 @@ sub osver
$ver = $lines[0];
$ver =~ s/\.//;
$ver =~ s/[^0-9]*([0-9]+).*/$1/;
my $minorver;
if (grep /PATCHLEVEL/, $lines[2]) {
$minorver = $lines[2];
$minorver =~ s/PATCHLEVEL[^0-9]*([0-9]+).*/$1/;
}
$ver = $ver . ".$minorver" if ( $minorver );
}
elsif (-f "/etc/UnitedLinux-release")
{