From 725a05e33713f34c92c86bae92b65cbe7a78bddb Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 16 Mar 2013 09:03:13 +0000 Subject: simplify --- urpm/media.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/urpm/media.pm b/urpm/media.pm index 3224407d..7898b194 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -764,10 +764,7 @@ sub non_ignored_media { sub all_media_to_update { my ($urpm, $b_only_marked_update) = @_; - grep { !$_->{ignore} - && !$_->{static} && !urpm::is_cdrom_url($_->{url}) && !$_->{iso} - && (!$b_only_marked_update || $_->{update}); - } @{$urpm->{media} || []}; + grep { !$_->{static} && !urpm::is_cdrom_url($_->{url}) && !$_->{iso} } non_ignored_media($urpm, $b_only_marked_update); } sub parse_media { -- cgit v1.2.1