[yum-cvs] yum cli.py,1.195,1.196

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


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

Modified Files:
	cli.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: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.195
retrieving revision 1.196
diff -u -r1.195 -r1.196
--- cli.py	19 Nov 2005 22:09:09 -0000	1.195
+++ cli.py	3 Dec 2005 07:15:10 -0000	1.196
@@ -607,6 +607,8 @@
             self.log(2, "This may take a while depending on the speed of this computer")
             self.log(3, '%s' % self.pickleRecipe())
             try:
+                for repo in self.repos.findRepos('*'):
+                    repo.metadata_expire = 0
                 self.doRepoSetup(dosack=0)
                 self.repos.populateSack(with='metadata', pickleonly=1)
                 self.repos.populateSack(with='filelists', pickleonly=1)




More information about the Yum-cvs-commits mailing list