diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-09-26 15:19:35 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-09-26 15:19:35 +0000 |
commit | 6cc1b40b7fd2ac4435fc4602b450c5e27aa6b8ca (patch) | |
tree | 9a98bc7e3084bdb6b8298701bb71c242716ca6dd | |
parent | 02ddc9fb755e11a4c1270c38a2f04b52643e47bf (diff) | |
download | rpmdrake-6cc1b40b7fd2ac4435fc4602b450c5e27aa6b8ca.tar rpmdrake-6cc1b40b7fd2ac4435fc4602b450c5e27aa6b8ca.tar.gz rpmdrake-6cc1b40b7fd2ac4435fc4602b450c5e27aa6b8ca.tar.bz2 rpmdrake-6cc1b40b7fd2ac4435fc4602b450c5e27aa6b8ca.tar.xz rpmdrake-6cc1b40b7fd2ac4435fc4602b450c5e27aa6b8ca.zip |
in "all updates" mode, show again packages w/o an importance field (aka those coming from non update media) (#25267)
-rwxr-xr-x | rpmdrake | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -733,13 +733,16 @@ sub run_treeview_dialog { installed => sub { $pkgs = $h->{installed} }, non_installed => sub { $pkgs = $h->{installable} }, #mandrake_choices => sub { $pkgs = }, - all_updates => sub { $pkgs = $h->{updates} }, + all_updates => sub { + my %pkgs = grep { my $p = $h->{installable}{$_}; $p->{pkg} && !$p->{selected} && $p->{pkg}->flag_installed && $p->{pkg}->flag_upgrade } keys %{$h->{installable}}; + $pkgs = { map { $_ => $h->{installable}{$_} } keys %pkgs }, + }, #security => sub { $pkgs = }, #normal => sub { $pkgs = } ); foreach my $importance (qw(bugfix security normal)) { $filter_methods{$importance} = sub { - $filter_methods{all_updates}->(); + $pkgs = $h->{updates}; $pkgs = { map { $_ => $pkgs->{$_} } grep { my ($name, $version) = split_fullname($_); $descriptions->{$name}{importance} eq $importance } keys %$pkgs }; |