aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-08-28 13:01:18 +0000
committerThierry Vignaud <tv@mandriva.org>2006-08-28 13:01:18 +0000
commitbca982a570fc70f123456ddf7acf567acc592787 (patch)
tree27f19acc0224920b6ca9bf6b304faebc1463f582
parentbb3211a7e454d62aa3eb1373840fb54a6bb4e243 (diff)
downloadrpmdrake-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-xrpmdrake1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index aefad33b..2e75f6f8 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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 = (