From ce1e46795fe84102a61e9cce1c51c9e3d3f4f1af Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 29 Jul 2009 16:05:42 +0000 Subject: [PATCH] remove Linux check around XML::Simple::PREFERRED_PARSER git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3895 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/pping | 4 +--- xCAT-client/bin/ppping | 4 +--- xCAT-client/bin/prsync | 4 +--- xCAT-client/bin/pscp | 4 +--- xCAT-client/bin/psh | 4 +--- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/xCAT-client/bin/pping b/xCAT-client/bin/pping index a2cec0d07..e75c43692 100755 --- a/xCAT-client/bin/pping +++ b/xCAT-client/bin/pping @@ -12,9 +12,7 @@ use lib "$::XCATROOT/lib/perl"; use IO::Socket::SSL; use XML::Simple; -if ($^O =~ /^linux/i) { - $XML::Simple::PREFERRED_PARSER='XML::Parser'; -} +$XML::Simple::PREFERRED_PARSER='XML::Parser'; use Data::Dumper; use IO::Handle; use IO::Select; diff --git a/xCAT-client/bin/ppping b/xCAT-client/bin/ppping index 1aaf5d290..1a3d56ea6 100755 --- a/xCAT-client/bin/ppping +++ b/xCAT-client/bin/ppping @@ -12,9 +12,7 @@ use lib "$::XCATROOT/lib/perl"; use IO::Socket::SSL; use XML::Simple; -if ($^O =~ /^linux/i) { - $XML::Simple::PREFERRED_PARSER='XML::Parser'; -} +$XML::Simple::PREFERRED_PARSER='XML::Parser'; use Data::Dumper; use IO::Handle; use IO::Select; diff --git a/xCAT-client/bin/prsync b/xCAT-client/bin/prsync index 931c3dd18..dd5f2c2fb 100755 --- a/xCAT-client/bin/prsync +++ b/xCAT-client/bin/prsync @@ -7,9 +7,7 @@ BEGIN use lib "$::XCATROOT/lib/perl"; use IO::Socket::SSL; use XML::Simple; -if ($^O =~ /^linux/i) { - $XML::Simple::PREFERRED_PARSER='XML::Parser'; -} +$XML::Simple::PREFERRED_PARSER='XML::Parser'; use Data::Dumper; use IO::Handle; use IO::Select; diff --git a/xCAT-client/bin/pscp b/xCAT-client/bin/pscp index 8854e17b5..c572d4c34 100755 --- a/xCAT-client/bin/pscp +++ b/xCAT-client/bin/pscp @@ -7,9 +7,7 @@ BEGIN use lib "$::XCATROOT/lib/perl"; use IO::Socket::SSL; use XML::Simple; -if ($^O =~ /^linux/i) { - $XML::Simple::PREFERRED_PARSER='XML::Parser'; -} +$XML::Simple::PREFERRED_PARSER='XML::Parser'; use Data::Dumper; use IO::Handle; use IO::Select; diff --git a/xCAT-client/bin/psh b/xCAT-client/bin/psh index ff3e903e4..46b533626 100755 --- a/xCAT-client/bin/psh +++ b/xCAT-client/bin/psh @@ -8,9 +8,7 @@ BEGIN use lib "$::XCATROOT/lib/perl"; use IO::Socket::SSL; use XML::Simple; -if ($^O =~ /^linux/i) { - $XML::Simple::PREFERRED_PARSER='XML::Parser'; -} +$XML::Simple::PREFERRED_PARSER='XML::Parser'; use Data::Dumper; use IO::Handle; use IO::Select;