fixing bug 3764, add osminor version for sles.
This commit is contained in:
parent
01c3a1070d
commit
3e0d22db7c
@ -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")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user