[Fedora-livecd-list] [PATCH] Add options to force fetching of repomd.xml every run.

Jesse Keating jkeating at redhat.com
Thu Apr 9 16:22:23 UTC 2009


This will make repomd.xml "timeout" every run and force yum to fetch
a new one.  However if it matches the rest of the repodata no other files
will be downloaded.  This helps when using the same cachedir for 32bit and
64bit runs.  Also expire the mirrorlist every run to ensure we get proper mirrors.
---
 imgcreate/yuminst.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/imgcreate/yuminst.py b/imgcreate/yuminst.py
index 080034b..d3f36ac 100644
--- a/imgcreate/yuminst.py
+++ b/imgcreate/yuminst.py
@@ -144,6 +144,8 @@ class LiveCDYum(yum.YumBase):
         repo.basecachedir = self.conf.cachedir
         repo.failovermethod = "priority"
         repo.metadata_expire = 0
+        repo.mirrorlist_expire = 0
+        repo.timestamp_check = 0
         # disable gpg check???
         repo.gpgcheck = 0
         repo.enable()
-- 
1.6.2.2




More information about the Fedora-livecd-list mailing list