aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-06 16:15:24 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-06 16:15:24 +0000
commitcf40d809bcab817c0860ded8fdf9ff05f244964b (patch)
tree6eadf1ceed5acd9bd3f8e17f715588979001fe49 /Rpmdrake
parent90d062f541b0c32a9a28798e7c65c4cfe109499b (diff)
downloadrpmdrake-cf40d809bcab817c0860ded8fdf9ff05f244964b.tar
rpmdrake-cf40d809bcab817c0860ded8fdf9ff05f244964b.tar.gz
rpmdrake-cf40d809bcab817c0860ded8fdf9ff05f244964b.tar.bz2
rpmdrake-cf40d809bcab817c0860ded8fdf9ff05f244964b.tar.xz
rpmdrake-cf40d809bcab817c0860ded8fdf9ff05f244964b.zip
(pkgs_provider) simplify ; make it clearer
Diffstat (limited to 'Rpmdrake')
-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}} },