aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ Pipkin <j@dawnrazor.net>2012-09-09 00:56:11 -0500
committerJ Pipkin <j@dawnrazor.net>2012-09-09 00:56:11 -0500
commit9c93f342f4f9a3e1a445fe3ac24679e0e534e3f0 (patch)
treebfd35f8df551c904f4c87e03894b845b5d043860
parent93c2f0cca06695781053f700f660add616299e27 (diff)
downloadsbotools2-9c93f342f4f9a3e1a445fe3ac24679e0e534e3f0.tar.xz
add compat32/arch check to sboupgrade so we can bail at the appropriate point if arch != x86_64 and --compat32|-p is specified
-rwxr-xr-xsboupgrade3
1 files changed, 3 insertions, 0 deletions
diff --git a/sboupgrade b/sboupgrade
index 6bc0700..d2e54a4 100755
--- a/sboupgrade
+++ b/sboupgrade
@@ -74,6 +74,9 @@ if ($jobs) {
$jobs = 0 if $jobs eq 'FALSE';
show_usage and exit 1 unless exists $ARGV[0];
+if ($compat32) {
+ die "compat32 only works on x86_64.\n" unless get_arch eq 'x86_64';
+}
# if we can't find SLACKBUILDS.TXT in $config{HOME}, prompt to fetch the tree
slackbuilds_or_fetch;