diff options
author | J Pipkin <j@dawnrazor.net> | 2012-09-09 00:56:11 -0500 |
---|---|---|
committer | J Pipkin <j@dawnrazor.net> | 2012-09-09 00:56:11 -0500 |
commit | 9c93f342f4f9a3e1a445fe3ac24679e0e534e3f0 (patch) | |
tree | bfd35f8df551c904f4c87e03894b845b5d043860 | |
parent | 93c2f0cca06695781053f700f660add616299e27 (diff) | |
download | sbotools2-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-x | sboupgrade | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |