diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-02-28 17:29:06 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-02-28 17:29:06 +0000 |
commit | aa167d3824a366b3736f10ba92c4b4d164d3dfaf (patch) | |
tree | bdfbfb89fa77471b1f2e214bd4e4da4e59f156ba /MandrivaUpdate | |
parent | 48b9c3f216c2bb2eeabde9287adcc1629d12d6f6 (diff) | |
download | rpmdrake-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-x | MandrivaUpdate | 5 |
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; |