aboutsummaryrefslogtreecommitdiffstats
path: root/MandrivaUpdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-02-28 17:29:06 +0000
committerThierry Vignaud <tv@mandriva.org>2007-02-28 17:29:06 +0000
commitaa167d3824a366b3736f10ba92c4b4d164d3dfaf (patch)
treebdfbfb89fa77471b1f2e214bd4e4da4e59f156ba /MandrivaUpdate
parent48b9c3f216c2bb2eeabde9287adcc1629d12d6f6 (diff)
downloadrpmdrake-aa167d3824a366b3736f10ba92c4b4d164d3dfaf.tar
rpmdrake-aa167d3824a366b3736f10ba92c4b4d164d3dfaf.tar.gz
rpmdrake-aa167d3824a366b3736f10ba92c4b4d164d3dfaf.tar.bz2
rpmdrake-aa167d3824a366b3736f10ba92c4b4d164d3dfaf.tar.xz
rpmdrake-aa167d3824a366b3736f10ba92c4b4d164d3dfaf.zip
don't select kernel*-latest by default
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-xMandrivaUpdate5
1 files changed, 5 insertions, 0 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate
index 58d11f18..fe9ecabc 100755
--- a/MandrivaUpdate
+++ b/MandrivaUpdate
@@ -127,6 +127,11 @@ gtknew('ScrolledWindow', width => $typical_width*0.9,
callback_choices => \&callback_choices,
);
+ # don't select kernel*-latest by default:
+ foreach my $name (sort(map { urpm_name($_) } @requested)) {
+ $pkgs->{$name}{selected} = to_bool($name !~ /^kernel.*-latest/);
+ };
+
@{$list->{data}} = map {
[ $pkgs->{$_}{selected}, join("\n", "<b>$_</b>", translate(rpm_summary($pkgs->{$_}{pkg}->summary))) ]
} sort map { urpm_name($_) } @requested;