[yum-cvs] yum/yum __init__.py,1.155,1.156 config.py,1.80,1.81

Seth Vidal skvidal at login.linux.duke.edu
Sat Dec 3 07:15:13 UTC 2005


Update of /home/groups/yum/cvs/yum/yum
In directory login:/tmp/cvs-serv22930/yum

Modified Files:
	__init__.py config.py 
Log Message:

- decrease default metadata_expire value from 8 hours to 30 minutes
- make yum clean metadata remove the cachecookie
- make yum makecache zero out the value of the metadata_expire so running
  it will force cache updating


Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -r1.155 -r1.156
--- __init__.py	21 Nov 2005 06:17:49 -0000	1.155
+++ __init__.py	3 Dec 2005 07:15:10 -0000	1.156
@@ -852,7 +852,7 @@
 
     def cleanMetadata(self):
         filelist = []
-        exts = ['xml.gz', 'xml']
+        exts = ['xml.gz', 'xml', 'cachecookie']
         
         removed = 0
         for ext in exts:

Index: config.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/config.py,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- config.py	8 Nov 2005 10:29:15 -0000	1.80
+++ config.py	3 Dec 2005 07:15:10 -0000	1.81
@@ -411,7 +411,7 @@
     throttle = ThrottleOption(0)
 
     http_caching = SelectionOption('all', ('none', 'packages', 'all'))
-    metadata_expire = IntOption(28800)   # time in seconds
+    metadata_expire = IntOption(1800)   # time in seconds
 
 class RepoConf(BaseConfig):
    




More information about the Yum-cvs-commits mailing list