aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-01 11:32:16 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-01 11:32:16 +0000
commit424061967f2a00973739d8dff379b0b3bd353ce5 (patch)
tree2c8a69e3937350b00d070e2f4c232086f9ab52b3
parent34bc88d9b5d1bf7bf6eca566278590b568ce0b3e (diff)
downloadrpmdrake-424061967f2a00973739d8dff379b0b3bd353ce5.tar
rpmdrake-424061967f2a00973739d8dff379b0b3bd353ce5.tar.gz
rpmdrake-424061967f2a00973739d8dff379b0b3bd353ce5.tar.bz2
rpmdrake-424061967f2a00973739d8dff379b0b3bd353ce5.tar.xz
rpmdrake-424061967f2a00973739d8dff379b0b3bd353ce5.zip
(get_pkgs,run_treeview_dialog) make sure 'compute_updates' is used the
same way in both rpmdrake & MandrivaUpdate
-rw-r--r--Rpmdrake/pkg.pm2
-rwxr-xr-xrpmdrake4
2 files changed, 3 insertions, 3 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 581ed6b8..7b0da077 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -475,7 +475,7 @@ sub get_pkgs {
my $state = {};
my (@requested, @requested_strict);
- if ($compute_updates || $::MODE eq 'update') {
+ if ($compute_updates->[0] || $::MODE eq 'update') {
get_updates_list($urpm, $db, $state, $requested, \@requested, \@requested_strict, \%all_pkgs);
}
diff --git a/rpmdrake b/rpmdrake
index 0652d171..73d4879f 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -567,7 +567,7 @@ sub run_treeview_dialog {
$dont_show_selections->[0] = !$checkbox_show_autoselect->get_active;
}, undef, '<CheckItem>' ],
[ $updates_string, undef, sub {
- $compute_updates = $check_boxes{$updates_string}->get_active;
+ $compute_updates->[0] = $check_boxes{$updates_string}->get_active;
}, undef, '<CheckItem>' ],
),
[ N("/_View"), undef, undef, undef, '<Branch>' ],
@@ -621,7 +621,7 @@ sub run_treeview_dialog {
} ($auto_string, $noclean_string, $updates_string);
if (!$>) {
$check_boxes{$auto_string}->set_active($::rpmdrake_options{auto});
- $check_boxes{$updates_string}->set_active($compute_updates);
+ $check_boxes{$updates_string}->set_active($compute_updates->[0]);
$check_boxes{$noclean_string}->set_active(!$::noclean);
}