From 3ed002ece06cc7ec12cedb23b0c93d6d3ec0df07 Mon Sep 17 00:00:00 2001 From: Jacob Pipkin Date: Tue, 8 May 2012 02:33:12 -0500 Subject: more of the same... --- SBO-Lib/lib/SBO/Lib.pm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'SBO-Lib/lib/SBO/Lib.pm') diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index c775df1..2c82acf 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -314,10 +314,11 @@ sub get_sbo_location { sub split_line { script_error('split_line requires three arguments') unless exists $_[2]; my ($line,$pattern,$index) = @_; + my @split; if ($pattern eq ' ') { - my @split = split("$pattern",$line); + @split = split("$pattern",$line); } else { - my @split = split(/$pattern/,$line); + @split = split(/$pattern/,$line); } return clean_line($split[$index]); } @@ -327,11 +328,6 @@ sub split_equal_one { return split_line($_[0],'=',1); } -sub check_multilib { - return 1 if -f '/etc/profile.d/32dev.sh'; - return; -} - sub find_download_info { script_error('find_download_info requires four arguments.') unless exists $_[3]; -- cgit v1.2.3