diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2006-05-16 12:12:41 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2006-05-16 12:12:41 +0000 |
commit | b5226a43486fa9b591c07dd34520756898b4b1ad (patch) | |
tree | 8c5e205369521b33163081e4a9be23e52acb7b37 | |
parent | de98e7e7e1bcccf2c16461d4231e8ccc660092e8 (diff) | |
download | rpmdrake-b5226a43486fa9b591c07dd34520756898b4b1ad.tar rpmdrake-b5226a43486fa9b591c07dd34520756898b4b1ad.tar.gz rpmdrake-b5226a43486fa9b591c07dd34520756898b4b1ad.tar.bz2 rpmdrake-b5226a43486fa9b591c07dd34520756898b4b1ad.tar.xz rpmdrake-b5226a43486fa9b591c07dd34520756898b4b1ad.zip |
handle the fact that interactive_list() can return nothing
-rwxr-xr-x | rpmdrake | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -617,9 +617,11 @@ sub run_treeview_dialog { } } my $callback = sub { interactive_msg_(N("More information on package..."), $options->{get_info}->($_[0]), scroll => 1) }; - $choices->[interactive_list_(N("Please choose"), N("One of the following packages is needed:"), - [ map { my_fullname($_) } @$choices ], $callback)]; + my @choices = interactive_list_(N("Please choose"), N("One of the following packages is needed:"), + [ map { my_fullname($_) } @$choices ], $callback); + $choices->[@choices]; }; + my $closure_removal = sub { my @to_remove; $urpm->{state} = {}; |