diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-04-24 13:37:20 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-04-24 13:37:20 +0000 |
commit | 193049d2e799ad46965b7670eb5416d61cc5e621 (patch) | |
tree | 001a0a70b73ca66d5a4f285eccfaec5cec6a860a | |
parent | b3d9f73c7a14324e54ece7031309b007db40c0c7 (diff) | |
download | rpmdrake-193049d2e799ad46965b7670eb5416d61cc5e621.tar rpmdrake-193049d2e799ad46965b7670eb5416d61cc5e621.tar.gz rpmdrake-193049d2e799ad46965b7670eb5416d61cc5e621.tar.bz2 rpmdrake-193049d2e799ad46965b7670eb5416d61cc5e621.tar.xz rpmdrake-193049d2e799ad46965b7670eb5416d61cc5e621.zip |
(callback_choices) fix selecting first choice, thus preventing asking
again the same question if choosing the first one
-rw-r--r-- | Rpmdrake/gui.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 650ca4f7..dddc05e9 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -434,7 +434,7 @@ sub callback_choices { my @choices = interactive_list_(N("Please choose"), (scalar(@$choices) == 1 ? N("The following package is needed:") : N("One of the following packages is needed:")), [ map { urpm_name($_) } @$choices ], $callback, nocancel => 1); - $choices[0] ? $choices->[$choices[0]] : undef; + defined $choices[0] ? $choices->[$choices[0]] : undef; } sub deps_msg { |