aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO/Lib.pm
diff options
context:
space:
mode:
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm10
1 files changed, 3 insertions, 7 deletions
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];