diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-10 17:08:27 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-10 17:08:27 +0000 |
commit | 8596088b0a1bdfa48de30ddf9689c19b7abeee46 (patch) | |
tree | 3e709b67e7e0f132a6ff75ecee30cb8567c1d35c | |
parent | abe2d077c29f142704f10bcd928ba76766543bbc (diff) | |
download | urpmi-8596088b0a1bdfa48de30ddf9689c19b7abeee46.tar urpmi-8596088b0a1bdfa48de30ddf9689c19b7abeee46.tar.gz urpmi-8596088b0a1bdfa48de30ddf9689c19b7abeee46.tar.bz2 urpmi-8596088b0a1bdfa48de30ddf9689c19b7abeee46.tar.xz urpmi-8596088b0a1bdfa48de30ddf9689c19b7abeee46.zip |
fix error in previous commit
-rw-r--r-- | urpm/select.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/select.pm b/urpm/select.pm index f2010a9f..e001b393 100644 --- a/urpm/select.pm +++ b/urpm/select.pm @@ -318,7 +318,7 @@ sub get_preferred { #- only keep the best prefered #- then put the other prefered packages first my $best = shift @prefer; - [$best], [@prefer, @l]; + $best ? [$best] : [], [@prefer, @l]; } #- find packages to remove. |