[yum-cvs] yum-utils package-cleanup.py,1.8,1.9

Seth Vidal skvidal at login.linux.duke.edu
Fri Nov 4 01:01:08 UTC 2005


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

Modified Files:
	package-cleanup.py 
Log Message:

merge David Lutterkort's patch to add a -c conffile option to
package-cleanup


Index: package-cleanup.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/package-cleanup.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- package-cleanup.py	13 Jul 2005 10:32:53 -0000	1.8
+++ package-cleanup.py	4 Nov 2005 01:01:05 -0000	1.9
@@ -37,7 +37,7 @@
 
 def initYum(opts):
     my = yum.YumBase()
-    my.doConfigSetup()
+    my.doConfigSetup(opts.conffile)
     my.log = Logger(threshold=my.conf.getConfigOption('debuglevel'), 
     file_object =sys.stdout)
     if opts.orphans:
@@ -262,6 +262,8 @@
       help="Number of kernel packages to keep on the system (default 2)")
     parser.add_option("--keepdevel",default=False,dest="keepdevel",action="store_true",
       help="Do not remove kernel-devel packages when removing kernels")
+    parser.add_option("-c", dest="conffile", action="store",
+                default='/etc/yum.conf', help="config file location")
 
     (opts, args) = parser.parse_args()
     if not exactlyOne((opts.problems,opts.leaves,opts.kernels,opts.orphans)): 




More information about the Yum-cvs-commits mailing list