2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 11:10:24 +00:00

[xCAT-Server]Remove unnecessary if and associated variable from xcatd

This commit is contained in:
Samveen Gulati
2015-10-18 04:31:30 +00:00
parent 80cb045a97
commit be181a807b

View File

@@ -44,14 +44,10 @@ use xCAT::TableUtils;
use xCAT::NetworkUtils;
use xCAT::MsgUtils;
use xCAT::xcatd;
my $IOCompress =1;
my $os = xCAT::Utils->osver();
my $arch = `uname -p`;
# These do not have the IO::Uncompress rpm available
if (($^O =~ /^aix/i) || ($os =~ /^sle[sc]10/) || (($os =~ /^rh.*5$/) && ($arch =~ /ppc64/))){
$IOCompress =0;
}
if ($IOCompress == 1 ) {
unless (($^O =~ /^aix/i) || ($os =~ /^sle[sc]10/) || (($os =~ /^rh.*5$/) && ($arch =~ /ppc64/))){
eval {require IO::Uncompress::Gunzip;}
}
use File::Path;