From 203c16aa05c79d3d388f4b291d3ead2968b3a38e Mon Sep 17 00:00:00 2001 From: xocel Date: Thu, 1 Nov 2012 14:39:41 +1300 Subject: sboupgradex added --- SBO-Lib/lib/SBO/Lib.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'SBO-Lib/lib') diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index e90f1e1..7b9dff7 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -578,11 +578,16 @@ sub perform_sbo (%) { unless ($args{LOCATION} && $args{ARCH}) { script_error 'perform_sbo requires LOCATION and ARCH.'; } + my $location = $args{LOCATION}; my $sbo = get_sbo_from_loc $location; my ($cmd, %changes); # set any changes we need to make to the .SlackBuild, setup the command + + $args{JOBS} = 0 if $args{JOBS} eq 'FALSE'; $changes{make} = "-j $args{JOBS}" if $args{JOBS}; + + if ($args{ARCH} eq 'x86_64' and ($args{C32} || $args{X32})) { if ($args{C32}) { $changes{libdirsuffix} = ''; -- cgit v1.2.3