aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-01-09 15:52:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-01-09 15:52:04 +0000
commit4d08eca3d7da1f0a5f9fb91bfa54561cceebb9c7 (patch)
tree00240639bbe013e984b3aed491ffea4bf3a2061c
parentc50b3eb8636fcc853107a51d64a5bc3e00aaefea (diff)
downloadperl-URPM-4d08eca3d7da1f0a5f9fb91bfa54561cceebb9c7.tar
perl-URPM-4d08eca3d7da1f0a5f9fb91bfa54561cceebb9c7.tar.gz
perl-URPM-4d08eca3d7da1f0a5f9fb91bfa54561cceebb9c7.tar.bz2
perl-URPM-4d08eca3d7da1f0a5f9fb91bfa54561cceebb9c7.tar.xz
perl-URPM-4d08eca3d7da1f0a5f9fb91bfa54561cceebb9c7.zip
@chosen is always non empty, and @chosen == 1 is already handled
-rw-r--r--URPM/Resolve.pm2
1 files changed, 1 insertions, 1 deletions
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];
}