aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO/Lib.pm
diff options
context:
space:
mode:
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index 770e300..13f5057 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -957,12 +957,14 @@ sub get_build_queue {
);
add_to_queue(\%args);
}
- # Remove duplicate entries (leaving first occurrence)
+ # Remove duplicate entries (leaving last occurrence)
+ @$temp_queue = reverse @$temp_queue;
my (%seen, @build_queue);
FIRST: for my $sb (@$temp_queue) {
next FIRST if $seen{$sb}++;
push @build_queue, $sb;
}
+ @build_queue = reverse @build_queue;
return \@build_queue;
}