From d65b89b87425fd7ac86f7c0431ffd633d31b32a5 Mon Sep 17 00:00:00 2001 From: Jacob Pipkin Date: Fri, 30 Nov 2012 02:35:03 -0600 Subject: stay in 80 columns, use labels for loop control --- sboupgrade | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sboupgrade b/sboupgrade index fa3cac6..18d86f3 100755 --- a/sboupgrade +++ b/sboupgrade @@ -73,7 +73,8 @@ GetOptions ( show_usage and exit 0 if $help; show_version and exit 0 if $vers; show_usage and exit 0 unless exists $ARGV[0]; -say "Invalid arguments: --force-reqs and --installnew can not be used together." and exit 0 if $force_reqs and $install_new; +say "Invalid arguments: --force-reqs and --installnew can not be used together." + and exit 0 if $force_reqs and $install_new; $noclean = $noclean eq 'TRUE' ? 1 : 0; $distclean = $distclean eq 'TRUE' ? 1 : 0; @@ -328,7 +329,7 @@ FIRST: for my $sbo (@$build_queue) { push(@temp_queue, $sbo); say "$sbo added to install queue."; } else { - last; + last FIRST; } } } @@ -336,7 +337,7 @@ FIRST: for my $sbo (@$build_queue) { push(@temp_queue, $name); say "$name added to install queue."; } else { - last; + last FIRST; } } else { push(@temp_queue, $sbo); -- cgit v1.2.3