diff options
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-x | MandrivaUpdate | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate index e2c527ea..904d791c 100755 --- a/MandrivaUpdate +++ b/MandrivaUpdate @@ -58,8 +58,9 @@ sub refresh_packages_list { # don't select kernel*-latest by default and the kernels they require: foreach my $name (@requested) { - $pkgs->{$name}{selected} = to_bool($name !~ /^kernel/); - $pkgs->{$name}{pkg}->set_flag_required($name !~ /^kernel/); + my $selected = $automatically_update_kernels->[0] ? 1 : $name !~ /^kernel/; + $pkgs->{$name}{selected} = to_bool($selected); + $pkgs->{$name}{pkg}->set_flag_required($selected); } @{$list->{data}} = map { |