aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-10 16:38:56 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-10 16:38:56 +0000
commit0947e5198e6809eb02e9b9b5fcd4f4b5079e37f7 (patch)
tree4ea2008795e1daca612dfc95bd167cd2d440ad96
parent6241b49cb1bacdf4b645e0319b17bc57feaa56a7 (diff)
downloadrpmdrake-0947e5198e6809eb02e9b9b5fcd4f4b5079e37f7.tar
rpmdrake-0947e5198e6809eb02e9b9b5fcd4f4b5079e37f7.tar.gz
rpmdrake-0947e5198e6809eb02e9b9b5fcd4f4b5079e37f7.tar.bz2
rpmdrake-0947e5198e6809eb02e9b9b5fcd4f4b5079e37f7.tar.xz
rpmdrake-0947e5198e6809eb02e9b9b5fcd4f4b5079e37f7.zip
(run_treeview_dialog) enable to set 'noclean' option (#13522)
-rw-r--r--NEWS3
-rwxr-xr-xrpmdrake7
2 files changed, 9 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 36cd8ff1..8c0db065 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- rpmdrake:
+ o enable to set 'noclean' option (#13522)
+
Version 5.1 - 10 October 2008, Thierry Vignaud
- do not ask sources on startup
diff --git a/rpmdrake b/rpmdrake
index 97c0806f..655d0e56 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -515,6 +515,7 @@ sub run_treeview_dialog {
my $checkbox_show_autoselect;
my %check_boxes;
my $auto_string = N("/_Options") . N("/_Select dependencies without asking");
+ my $noclean_string = N("/_Options") . "/" . N("Clear download cache after successfull install");
my ($menu, $factory) = create_factory_menu(
$w->{real_window},
[ N("/_File"), undef, undef, undef, '<Branch>' ],
@@ -548,6 +549,9 @@ sub run_treeview_dialog {
[ $auto_string, undef, sub {
$urpm->{options}{auto} = $::rpmdrake_options{auto} = $check_boxes{$auto_string}->get_active if $check_boxes{$auto_string};
}, undef, '<CheckItem>' ],
+ [ $noclean_string, undef, sub {
+ $::noclean = $check_boxes{$noclean_string}->get_active if $check_boxes{$noclean_string};
+ }, undef, '<CheckItem>' ],
[ N("/_Options") . N("/_Media Manager"), undef, sub {
require Rpmdrake::edit_urpm_sources;
Rpmdrake::edit_urpm_sources::run() && $reload_db_and_clear_all->();
@@ -604,8 +608,9 @@ sub run_treeview_dialog {
%check_boxes = map {
$_ => $factory->get_widget("<main>" . $get_path->($_));
- } ($auto_string);
+ } ($auto_string, $noclean_string);
$check_boxes{$auto_string}->set_active($::rpmdrake_options{auto}) if !$>;
+ $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]);