From 9c93f342f4f9a3e1a445fe3ac24679e0e534e3f0 Mon Sep 17 00:00:00 2001 From: J Pipkin Date: Sun, 9 Sep 2012 00:56:11 -0500 Subject: add compat32/arch check to sboupgrade so we can bail at the appropriate point if arch != x86_64 and --compat32|-p is specified --- sboupgrade | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3