From 442333774fba5156a1ef20ca7bb4ac75adafdc81 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 12 Sep 2007 12:12:20 +0000 Subject: cleanup --- URPM/Resolve.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'URPM') diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index 31c462d..98bf925 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -506,8 +506,8 @@ sub set_rejected { #- keep track of what causes closure. if ($options{from}) { - my %d; @d{@{$rv->{closure}{$options{from}->fullname}{unsatisfied} ||= []}} = (); - push @{$rv->{closure}{$options{from}->fullname}{unsatisfied}}, grep { ! exists $d{$_} } @{$options{why}}; + my $unsatisfied = $rv->{closure}{$options{from}->fullname}{unsatisfied} ||= []; + @$unsatisfied = uniq(@$unsatisfied, @{$options{why}}); } #- set removed and obsoleted level. -- cgit v1.2.1