[yum-cvs] yum-utils yum-builddep.py,1.4,1.5
Seth Vidal
skvidal at linux.duke.edu
Sun May 7 01:20:03 UTC 2006
Update of /home/groups/yum/cvs/yum-utils
In directory login1.linux.duke.edu:/tmp/cvs-serv479
Modified Files:
yum-builddep.py
Log Message:
get rid of setConfig and getConfig to kill deprecation warnings
Index: yum-builddep.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/yum-builddep.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- yum-builddep.py 16 Mar 2006 15:46:24 -0000 1.4
+++ yum-builddep.py 7 May 2006 01:20:01 -0000 1.5
@@ -40,11 +40,11 @@
opts, args = parseArgs()
base = cli.YumBaseCli()
base.doConfigSetup()
- base.conf.setConfigOption('uid', os.geteuid())
+ base.conf.uid = os.geteuid()
- base.log = Logger(threshold=base.conf.getConfigOption('debuglevel'), file_object =sys.stdout)
+ base.log = Logger(threshold=base.conf.debuglevel, file_object =sys.stdout)
- if base.conf.getConfigOption('uid') != 0:
+ if base.conf.uid != 0:
base.errorlog(0, "You must be root to install packages")
sys.exit(1)
More information about the Yum-cvs-commits
mailing list