From 4d08eca3d7da1f0a5f9fb91bfa54561cceebb9c7 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 9 Jan 2007 15:52:04 +0000 Subject: @chosen is always non empty, and @chosen == 1 is already handled --- URPM/Resolve.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index bdb470c..476a003 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -135,7 +135,7 @@ sub find_chosen_packages { #- if several packages were selected to match a requested installation, #- and if --more-choices wasn't given, trim the choices to the first one. - if (!$urpm->{options}{morechoices} && @chosen > 1 && $chosen_with_score[0][2] == 3) { + if (!$urpm->{options}{morechoices} && $chosen_with_score[0][2] == 3) { return $chosen[0]; } -- cgit v1.2.1