From e88bfa3c52ccbb1e37504b3cda79631d6dbe53ce Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 10 Sep 2007 16:33:17 +0000 Subject: if there is a prefered package, it's the first one --- urpm/select.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/urpm/select.pm b/urpm/select.pm index c01d8b17..f2010a9f 100644 --- a/urpm/select.pm +++ b/urpm/select.pm @@ -314,7 +314,11 @@ sub get_preferred { $urpm->{log}("preferring $prefer_s over $other_s"); } } - (\@prefer, \@l); + + #- only keep the best prefered + #- then put the other prefered packages first + my $best = shift @prefer; + [$best], [@prefer, @l]; } #- find packages to remove. -- cgit v1.2.1