diff options
author | João Victor Duarte Martins <jvictor@mandriva.com> | 2010-04-06 20:39:58 +0000 |
---|---|---|
committer | João Victor Duarte Martins <jvictor@mandriva.com> | 2010-04-06 20:39:58 +0000 |
commit | f5fef833d523cc0919fae5cc2ddc87371ccf32c9 (patch) | |
tree | f75ba77d22da131153e163cf9cb8cd301bba0c6d /Rpmdrake/gui.pm | |
parent | 60bc5a7fc66e3d70cffe19734145ebd22071748b (diff) | |
download | rpmdrake-f5fef833d523cc0919fae5cc2ddc87371ccf32c9.tar rpmdrake-f5fef833d523cc0919fae5cc2ddc87371ccf32c9.tar.gz rpmdrake-f5fef833d523cc0919fae5cc2ddc87371ccf32c9.tar.bz2 rpmdrake-f5fef833d523cc0919fae5cc2ddc87371ccf32c9.tar.xz rpmdrake-f5fef833d523cc0919fae5cc2ddc87371ccf32c9.zip |
Bugfix update version 5.16.6 (bug #40556)distro/mdv2009.1
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r-- | Rpmdrake/gui.pm | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 40334a42..3cd9cd1a 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -524,19 +524,25 @@ sub pkgs_provider { all => [ keys %$pkgs ], ); my %tmp_filter_methods = ( - all => sub { [ keys %$pkgs ] }, + all => sub { + [ difference2([ keys %$pkgs ], $h->{inactive_backports}) ] + }, all_updates => sub { # potential "updates" from media not tagged as updates: if (!$options{pure_updates} && !$Rpmdrake::pkg::need_restart) { [ @{$h->{updates}}, difference2([ grep { is_updatable($_) } @{$h->{installable}} ], $h->{backports}) ]; } else { - $h->{updates}; + [ difference2($h->{updates}, $h->{inactive_backports}) ]; } }, backports => sub { $h->{backports} }, - meta_pkgs => sub { $h->{meta_pkgs} }, - gui_pkgs => sub { $h->{gui_pkgs} }, + meta_pkgs => sub { + [ difference2($h->{meta_pkgs}, $h->{inactive_backports}) ] + }, + gui_pkgs => sub { + [ difference2($h->{gui_pkgs}, $h->{inactive_backports}) ] + }, ); foreach my $importance (qw(bugfix security normal)) { $tmp_filter_methods{$importance} = sub { |