commit 028ea510e8b91926832a09346573166f049c06a6
parent d31fd91c41c4985f8bed0742c16f86eb1719ef54
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Sat, 18 Jun 2016 02:15:25 +0200
sboremove: %inst_names has already been checked before, and nothing odd would happen anyway
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/sboremove b/sboremove
@@ -112,12 +112,10 @@ sub confirm_remove {
# Check if packages in queue are actually installed on system
my @temp;
-if (%inst_names) {
- for my $sbo (@$remove_queue) {
- push @temp, $sbo if $inst_names{$sbo};
- }
- $remove_queue = \@temp;
+for my $sbo (@$remove_queue) {
+ push @temp, $sbo if $inst_names{$sbo};
}
+$remove_queue = \@temp;
# Confirm all and skip prompts if noninteractive
if ($non_int) {