diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-06-18 02:14:03 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-06-18 02:14:03 +0200 |
commit | d31fd91c41c4985f8bed0742c16f86eb1719ef54 (patch) | |
tree | f9c80f8dad23510f415fac293c5efbbfadeb6978 /sboremove | |
parent | 1bcb3423ada4e04f7d6c5d76ac8918213089866b (diff) | |
download | sbotools-d31fd91c41c4985f8bed0742c16f86eb1719ef54.tar.xz |
sboremove: no need for confirmed hash; it's already checked in get_required_by
Diffstat (limited to 'sboremove')
-rwxr-xr-x | sboremove | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -130,11 +130,10 @@ FIRST: for my $remove (@$remove_queue) { # Determine whether $remove is still needed on system. my $required_by = get_required_by $remove; my $needed = 0; - my (%confirmed, %sbos); - $confirmed{$_} = 1 for @confirmed; + my %sbos; $sbos{$_} = 1 for @sbos; for my $rq (@$required_by) { - $needed = 1 unless $confirmed{$rq} or $sbos{$remove}; + $needed = 1 unless $sbos{$remove}; # still needed, unless required_by is already confirmed for removal or # the sbo in question was cli-specified. } |