summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-10 17:11:24 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-10 17:11:24 +0000
commita30759ca1700a08b531d4e5e5338b575528d57cc (patch)
tree5915b6fbf7538059d29b47d2cd7ad49a31d4af91 /urpm
parent8596088b0a1bdfa48de30ddf9689c19b7abeee46 (diff)
downloadurpmi-a30759ca1700a08b531d4e5e5338b575528d57cc.tar
urpmi-a30759ca1700a08b531d4e5e5338b575528d57cc.tar.gz
urpmi-a30759ca1700a08b531d4e5e5338b575528d57cc.tar.bz2
urpmi-a30759ca1700a08b531d4e5e5338b575528d57cc.tar.xz
urpmi-a30759ca1700a08b531d4e5e5338b575528d57cc.zip
fix error in previous commit
Diffstat (limited to 'urpm')
-rw-r--r--urpm/msg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/msg.pm b/urpm/msg.pm
index 95938516..c479f5b8 100644
--- a/urpm/msg.pm
+++ b/urpm/msg.pm
@@ -112,7 +112,7 @@ sub _message_input {
if ($o_opts{boolean}) {
$input =~ /^[$noexpr$yesexpr]?$/ and last;
} elsif ($o_opts{range}) {
- $input eq "" and $input = $o_opts{default}; #- defaults to first choice
+ $input eq "" and $input = $o_opts{default} || 1; #- defaults to first choice
(defined $o_opts{range_min} ? $o_opts{range_min} : 1) <= $input && $input <= $o_opts{range} and last;
} else {
last;