aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}