[yum-cvs] yum/yum config.py,1.91,1.92
Seth Vidal
skvidal at linux.duke.edu
Fri Feb 10 06:45:32 UTC 2006
Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv4303/yum
Modified Files:
config.py
Log Message:
fix for rh bug #179512
make yum error out appropriately if config file does not exist
Index: config.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/config.py,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -r1.91 -r1.92
--- config.py 26 Jan 2006 04:08:23 -0000 1.91
+++ config.py 10 Feb 2006 06:45:30 -0000 1.92
@@ -559,6 +559,9 @@
EarlyConf.installroot.default = root
earlyconf = EarlyConf()
confparser = IncludingConfigParser()
+ if not os.path.exists(configfile):
+ raise Errors.ConfigError, 'No such config file %s' % configfile
+
confparser.read(configfile)
earlyconf.populate(confparser, 'main')
More information about the Yum-cvs-commits
mailing list