From 73cf93f36b9e61df750871a510b69ccafa2d5300 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Tue, 10 Sep 2013 14:50:04 +0800 Subject: [PATCH] fixing bug 3764, add osminor version for sles. --- xCAT-buildkit/lib/perl/xCAT/BuildKitUtils.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-buildkit/lib/perl/xCAT/BuildKitUtils.pm b/xCAT-buildkit/lib/perl/xCAT/BuildKitUtils.pm index c92e51a9e..644837924 100644 --- a/xCAT-buildkit/lib/perl/xCAT/BuildKitUtils.pm +++ b/xCAT-buildkit/lib/perl/xCAT/BuildKitUtils.pm @@ -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") {