aboutsummaryrefslogtreecommitdiff
path: root/sboremove
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-06-18 02:14:03 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-06-18 02:14:03 +0200
commitd31fd91c41c4985f8bed0742c16f86eb1719ef54 (patch)
treef9c80f8dad23510f415fac293c5efbbfadeb6978 /sboremove
parent1bcb3423ada4e04f7d6c5d76ac8918213089866b (diff)
downloadsbotools-d31fd91c41c4985f8bed0742c16f86eb1719ef54.tar.xz
sboremove: no need for confirmed hash; it's already checked in get_required_by
Diffstat (limited to 'sboremove')
-rwxr-xr-xsboremove5
1 files changed, 2 insertions, 3 deletions
diff --git a/sboremove b/sboremove
index dc1c722..2eac054 100755
--- a/sboremove
+++ b/sboremove
@@ -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.
}