aboutsummaryrefslogtreecommitdiffstats
path: root/MandrivaUpdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-02 14:08:46 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-02 14:08:46 +0000
commitb836671002d06a12958ff968893ac35f0e04143f (patch)
treeb2a8f705495d062cb634c2d0cd08c691ab13d1ab /MandrivaUpdate
parent1760cfe15b2b778eb9d2adeae2df3c3336c728fa (diff)
downloadrpmdrake-b836671002d06a12958ff968893ac35f0e04143f.tar
rpmdrake-b836671002d06a12958ff968893ac35f0e04143f.tar.gz
rpmdrake-b836671002d06a12958ff968893ac35f0e04143f.tar.bz2
rpmdrake-b836671002d06a12958ff968893ac35f0e04143f.tar.xz
rpmdrake-b836671002d06a12958ff968893ac35f0e04143f.zip
automatically select kernels if /root/.rpmdrake contains "automatically_update_kernels 1"
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 {