diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-10 16:33:17 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-10 16:33:17 +0000 |
commit | e88bfa3c52ccbb1e37504b3cda79631d6dbe53ce (patch) | |
tree | 32dd4c25e8556922ed89a1aaf759387c98934655 /urpm | |
parent | b1c429a644e553fa2534b5910fcfca1c9d5673a9 (diff) | |
download | urpmi-e88bfa3c52ccbb1e37504b3cda79631d6dbe53ce.tar urpmi-e88bfa3c52ccbb1e37504b3cda79631d6dbe53ce.tar.gz urpmi-e88bfa3c52ccbb1e37504b3cda79631d6dbe53ce.tar.bz2 urpmi-e88bfa3c52ccbb1e37504b3cda79631d6dbe53ce.tar.xz urpmi-e88bfa3c52ccbb1e37504b3cda79631d6dbe53ce.zip |
if there is a prefered package, it's the first one
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. |