summaryrefslogtreecommitdiffstats
path: root/urpm/select.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-10 17:08:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-10 17:08:27 +0000
commit8596088b0a1bdfa48de30ddf9689c19b7abeee46 (patch)
tree3e709b67e7e0f132a6ff75ecee30cb8567c1d35c /urpm/select.pm
parentabe2d077c29f142704f10bcd928ba76766543bbc (diff)
downloadurpmi-8596088b0a1bdfa48de30ddf9689c19b7abeee46.tar
urpmi-8596088b0a1bdfa48de30ddf9689c19b7abeee46.tar.gz
urpmi-8596088b0a1bdfa48de30ddf9689c19b7abeee46.tar.bz2
urpmi-8596088b0a1bdfa48de30ddf9689c19b7abeee46.tar.xz
urpmi-8596088b0a1bdfa48de30ddf9689c19b7abeee46.zip
fix error in previous commit
Diffstat (limited to 'urpm/select.pm')
-rw-r--r--urpm/select.pm2
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.