diff options
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/select.pm | 6 |
1 files changed, 5 insertions, 1 deletions
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. |