aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-05-16 12:12:41 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-05-16 12:12:41 +0000
commitb5226a43486fa9b591c07dd34520756898b4b1ad (patch)
tree8c5e205369521b33163081e4a9be23e52acb7b37
parentde98e7e7e1bcccf2c16461d4231e8ccc660092e8 (diff)
downloadrpmdrake-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-xrpmdrake6
1 files changed, 4 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index 23991f89..4aa89c0f 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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} = {};