aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-05-12 22:10:36 +0000
committerThierry Vignaud <tv@mandriva.org>2009-05-12 22:10:36 +0000
commit56d4fb4a98f5a9d6ab260849dfc08126666b7db4 (patch)
tree3936aaba7c89d387ab72cebad6a831f24d9bc914
parent38efcd8a3e05c3af50512a8a84aea95c094c6520 (diff)
downloadrpmdrake-56d4fb4a98f5a9d6ab260849dfc08126666b7db4.tar
rpmdrake-56d4fb4a98f5a9d6ab260849dfc08126666b7db4.tar.gz
rpmdrake-56d4fb4a98f5a9d6ab260849dfc08126666b7db4.tar.bz2
rpmdrake-56d4fb4a98f5a9d6ab260849dfc08126666b7db4.tar.xz
rpmdrake-56d4fb4a98f5a9d6ab260849dfc08126666b7db4.zip
(run_treeview_dialog) fix crashing when running as user (#50473)
(regression introduced in r248003 on 2008-10-10: "(run_treeview_dialog) enable to set 'noclean' option (#13522)")
-rw-r--r--NEWS3
-rwxr-xr-xrpmdrake8
2 files changed, 8 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 6ade835a..8f01b4e7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- rpmdrake:
+ o do not crash when running as root (#50473)
+
Version 5.16.3 - 6 May 2009, Thierry Vignaud
- rpmdrake:
diff --git a/rpmdrake b/rpmdrake
index cfa1dbf8..0652d171 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -619,9 +619,11 @@ sub run_treeview_dialog {
%check_boxes = map {
$_ => $factory->get_widget("<main>" . $get_path->($_));
} ($auto_string, $noclean_string, $updates_string);
- $check_boxes{$auto_string}->set_active($::rpmdrake_options{auto}) if !$>;
- $check_boxes{$updates_string}->set_active($compute_updates) if !$>;
- $check_boxes{$noclean_string}->set_active(!$::noclean);
+ if (!$>) {
+ $check_boxes{$auto_string}->set_active($::rpmdrake_options{auto});
+ $check_boxes{$updates_string}->set_active($compute_updates);
+ $check_boxes{$noclean_string}->set_active(!$::noclean);
+ }
$checkbox_show_autoselect = $factory->get_widget("<main>" . strip_first_underscore(N("/_Options"), N("/_Show automatically selected packages")))
and $checkbox_show_autoselect->set_active(!$dont_show_selections->[0]);