[yum-cvs] yum/yum __init__.py,1.193,1.194 config.py,1.94,1.95

Jeremy Katz katzj at linux.duke.edu
Sat Mar 4 16:09:05 UTC 2006


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv2989/yum

Modified Files:
	__init__.py config.py 
Log Message:
new option 'keepcache' to allow the cache of packages and headers to be 
automatically purged after successful package installation.  the default
behavior remains to keep things (as previously)


Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.193
retrieving revision 1.194
diff -u -r1.193 -r1.194
--- __init__.py	3 Mar 2006 21:33:39 -0000	1.193
+++ __init__.py	4 Mar 2006 16:09:02 -0000	1.194
@@ -419,6 +419,10 @@
             
             raise Errors.YumBaseError, errstring
 
+        if not self.conf.keepcache:
+            self.cleanHeaders()
+            self.cleanPackages()
+
         self.plugins.run('posttrans')
         
     def excludePackages(self, repo=None):

Index: config.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/config.py,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -r1.94 -r1.95
--- config.py	1 Mar 2006 19:23:52 -0000	1.94
+++ config.py	4 Mar 2006 16:09:02 -0000	1.95
@@ -461,7 +461,7 @@
 
 class YumConf(EarlyConf):
     '''
-    Configuration option definitions for yum.conf's [main] section.
+    Configuration option definitions for yum.conf\'s [main] section.
 
     Note: inherits options from EarlyConf too.
     '''
@@ -472,6 +472,7 @@
     recent = IntOption(7)
 
     cachedir = Option('/var/cache/yum')
+    keepcache = BoolOption(True)
     logfile = Option('/var/log/yum.log')
     reposdir = ListOption(['/etc/yum/repos.d', '/etc/yum.repos.d'])
     syslog_ident = Option()




More information about the Yum-cvs-commits mailing list