aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 055f10b2..08860c3d 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -494,10 +494,12 @@ sub pkgs_provider {
installed => sub { @filtered_pkgs = @{$h->{installed}} },
non_installed => sub { @filtered_pkgs = @{$h->{installable}} },
all_updates => sub {
+ @filtered_pkgs = @{$h->{updates}};
# potential "updates" from media not tagged as updates:
- my @pkgs = $options{pure_updates} ? () :
- (grep { is_updatable($_) } @{$h->{installable}});
- @filtered_pkgs = @{$h->{updates}}, @pkgs;
+ if (!$options{pure_updates}) {
+ push @filtered_pkgs, @{$h->{updates}},
+ grep { is_updatable($_) } @{$h->{installable}};
+ }
},
backports => sub { @filtered_pkgs = @{$h->{backports}} },
meta_pkgs => sub { @filtered_pkgs = @{$h->{meta_pkgs}} },