summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.