aboutsummaryrefslogtreecommitdiffstats
path: root/MandrivaUpdate
diff options
context:
space:
mode:
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-xMandrivaUpdate5
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 {