From 12ba4482a5cae621dbcd031ce960978fd1a25c9f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 13 Nov 2006 16:48:53 +0000 Subject: cleanup --- urpm.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/urpm.pm b/urpm.pm index 76619423..ec29eaac 100644 --- a/urpm.pm +++ b/urpm.pm @@ -1444,10 +1444,13 @@ sub _update_medium_first_pass { file_size("$urpm->{statedir}/synthesis.$medium->{hdlist}") > 32 or $medium->{modified_synthesis} = 1; - #- if we're rebuilding all media, mark them as modified (except removable ones) - $medium->{modified} ||= $options{all} && $medium->{url} !~ m!^removable!; - #- don't ever update static media - $medium->{static} and $medium->{modified} = 0; + if ($medium->{static}) { + #- don't ever update static media + $medium->{modified} = 0; + } elsif ($options{all}) { + #- if we're rebuilding all media, mark them as modified (except removable ones) + $medium->{modified} ||= $medium->{url} !~ m!^removable!; + } unless ($medium->{modified}) { #- the medium is not modified, but to compute dependencies, -- cgit v1.2.1