aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM/Resolve.pm4
1 files changed, 2 insertions, 2 deletions
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.