aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorJoão Victor Duarte Martins <jvictor@mandriva.com>2010-04-06 16:08:42 +0000
committerJoão Victor Duarte Martins <jvictor@mandriva.com>2010-04-06 16:08:42 +0000
commit1a933c854c9f5357e4898f5c5e56095aea0eb88a (patch)
treefc7454ad96a9ab9428025adfa654e404efe1655e /Rpmdrake/gui.pm
parent9a32f85aaef279ce534a9e5e63e12c50bfaeac3c (diff)
downloadrpmdrake-1a933c854c9f5357e4898f5c5e56095aea0eb88a.tar
rpmdrake-1a933c854c9f5357e4898f5c5e56095aea0eb88a.tar.gz
rpmdrake-1a933c854c9f5357e4898f5c5e56095aea0eb88a.tar.bz2
rpmdrake-1a933c854c9f5357e4898f5c5e56095aea0eb88a.tar.xz
rpmdrake-1a933c854c9f5357e4898f5c5e56095aea0eb88a.zip
Fixes the inactive backports listing (#40556)
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm14
1 files changed, 10 insertions, 4 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index f54dea8a..41306f77 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -636,19 +636,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 {