diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-06-18 02:15:25 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-06-18 02:15:25 +0200 |
commit | 028ea510e8b91926832a09346573166f049c06a6 (patch) | |
tree | 93e5322336c11fa44a1203c3a11504154af472ea | |
parent | d31fd91c41c4985f8bed0742c16f86eb1719ef54 (diff) | |
download | sbotools2-028ea510e8b91926832a09346573166f049c06a6.tar.xz |
sboremove: %inst_names has already been checked before, and nothing odd would happen anyway
-rwxr-xr-x | sboremove | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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) { |