fixing bug 3764, add osminor version for sles.

This commit is contained in:
wanghuaz 2013-09-10 14:51:45 +08:00
parent 01c3a1070d
commit 3e0d22db7c

View File

@ -129,8 +129,6 @@ sub get_latest_version
}
#------------------------------------------------------------------------------
=head3 testVersion
Compare version1 and version2 according to the operator and
@ -206,7 +204,6 @@ sub testVersion
return $bool;
}
#-------------------------------------------------------------------------------
=head3 isAIX
@ -454,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")
{