[yum-cvs] yum cli.py,1.189,1.189.2.1

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


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

Modified Files:
      Tag: yum-2_4_X
	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.189
retrieving revision 1.189.2.1
diff -u -r1.189 -r1.189.2.1
--- cli.py	14 Jul 2005 08:32:51 -0000	1.189
+++ cli.py	3 Dec 2005 07:15:03 -0000	1.189.2.1
@@ -610,6 +610,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