aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-11-30 07:26:41 -0600
committerJacob Pipkin <j@dawnrazor.net>2012-11-30 07:26:41 -0600
commit409e298681539f4a5ac7b802377898461147259e (patch)
tree7262f63cec59ba094cc67cda7e6453b4dfabeb3c
parentc262a5b4f50d10652b262b7b256000b2a3487a24 (diff)
downloadsbotools2-409e298681539f4a5ac7b802377898461147259e.tar.xz
do reverse the order of the build_queue when it is appropriate to do so.
-rwxr-xr-xsboupgrade5
1 files changed, 4 insertions, 1 deletions
diff --git a/sboupgrade b/sboupgrade
index 3d93e1e..a6afe1a 100755
--- a/sboupgrade
+++ b/sboupgrade
@@ -90,7 +90,10 @@ my %locations;
if ($no_reqs or $non_int) {
$build_queue = \@ARGV;
} else {
- $build_queue = get_build_queue(\@ARGV, \%warnings);
+ for my $sbo (@ARGV) {
+ my $queue = get_build_queue ([$sbo], \%warnings);
+ push @$build_queue, reverse @$queue;
+ }
}
for my $sbo (@$build_queue) {
$locations{$sbo} = get_sbo_location ($sbo);