aboutsummaryrefslogtreecommitdiffstats
path: root/MandrivaUpdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-01 11:08:52 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-01 11:08:52 +0000
commitf3f35cd7cfe0bfff456bfb8f58426d7f89bda31a (patch)
tree9bdae95f6f48c6aebe32d8e5824f271741ee2fce /MandrivaUpdate
parenta046bd511f0ee012d2b55dfa6bc3c518c8ef8db6 (diff)
downloadrpmdrake-f3f35cd7cfe0bfff456bfb8f58426d7f89bda31a.tar
rpmdrake-f3f35cd7cfe0bfff456bfb8f58426d7f89bda31a.tar.gz
rpmdrake-f3f35cd7cfe0bfff456bfb8f58426d7f89bda31a.tar.bz2
rpmdrake-f3f35cd7cfe0bfff456bfb8f58426d7f89bda31a.tar.xz
rpmdrake-f3f35cd7cfe0bfff456bfb8f58426d7f89bda31a.zip
(get_pkgs) move better updated enumeration algo from MandrivaUpdate here
(thus fixing a crash in MandrivaUpdate & making rpmdrake displaying the same update set)
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-xMandrivaUpdate9
1 files changed, 3 insertions, 6 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate
index 4c0582e3..a3bbd069 100755
--- a/MandrivaUpdate
+++ b/MandrivaUpdate
@@ -122,20 +122,17 @@ gtknew('ScrolledWindow', width => $typical_width*0.9,
pkgs_provider({}, $default_list_mode); # default mode
# select packages to update:
- my @requested = $urpm->resolve_requested($db, $urpm->{state},
- { map { $pkgs->{$_}{pkg}->id => 1 } keys %$pkgs },
- callback_choices => \&callback_choices,
- );
+ my @requested = sort keys %$pkgs;
# don't select kernel*-latest by default:
- foreach my $name (sort(map { urpm_name($_) } @requested)) {
+ foreach my $name (@requested) {
$pkgs->{$name}{selected} = to_bool($name !~ /^kernel.*-latest/);
$pkgs->{$name}{pkg}->set_flag_required($name !~ /^kernel.*-latest/);
};
@{$list->{data}} = map {
[ $pkgs->{$_}{selected}, join("\n", "<b>$_</b>", translate(rpm_summary($pkgs->{$_}{pkg}->summary))) ]
- } sort map { urpm_name($_) } @requested;
+ } grep { $pkgs->{$_}{pkg} } @requested;
my $cell = ($list->get_column(0)->get_cell_renderers)[0];
$cell->signal_connect (toggled => sub {
my ($cell, $text_path) = @_;