From a30759ca1700a08b531d4e5e5338b575528d57cc Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 10 Sep 2007 17:11:24 +0000 Subject: fix error in previous commit --- urpm/msg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpm') 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; -- cgit v1.2.1