diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-08-28 13:01:18 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-08-28 13:01:18 +0000 |
commit | bca982a570fc70f123456ddf7acf567acc592787 (patch) | |
tree | 27f19acc0224920b6ca9bf6b304faebc1463f582 | |
parent | bb3211a7e454d62aa3eb1373840fb54a6bb4e243 (diff) | |
download | rpmdrake-bca982a570fc70f123456ddf7acf567acc592787.tar rpmdrake-bca982a570fc70f123456ddf7acf567acc592787.tar.gz rpmdrake-bca982a570fc70f123456ddf7acf567acc592787.tar.bz2 rpmdrake-bca982a570fc70f123456ddf7acf567acc592787.tar.xz rpmdrake-bca982a570fc70f123456ddf7acf567acc592787.zip |
(run_treeview_dialog) don't crash if passed an invalid mode
-rwxr-xr-x | rpmdrake | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -638,6 +638,7 @@ sub run_treeview_dialog { my ($urpm, $pkgs, $descriptions); my $pkgs_provider = sub { my ($options, $mode) = @_; + return if !$mode; my $h = &get_pkgs($urpm, $options); # was given (1, @_) for updates ($urpm, $descriptions) = @$h{qw(urpm update_descr)}; my %filter_methods = ( |