summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-04-12 10:59:36 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-04-12 10:59:36 +0000
commitad361a3d354bba80005481f58bf08595632ebd1a (patch)
tree4ff2adb0069c33f61878cacf2b789ef665dd1887
parent39b8eca775908d6ecab0421d1383b8c1407f27e0 (diff)
downloadurpmi-ad361a3d354bba80005481f58bf08595632ebd1a.tar
urpmi-ad361a3d354bba80005481f58bf08595632ebd1a.tar.gz
urpmi-ad361a3d354bba80005481f58bf08595632ebd1a.tar.bz2
urpmi-ad361a3d354bba80005481f58bf08595632ebd1a.tar.xz
urpmi-ad361a3d354bba80005481f58bf08595632ebd1a.zip
Never update static media
-rw-r--r--urpm.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 631a943a..66119e73 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1022,6 +1022,8 @@ sub update_media {
#- 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;
unless ($medium->{modified}) {
#- the medium is not modified, but to compute dependencies,