extras-buildsys/builder builder.py,1.36,1.37

Daniel Williams (dcbw) fedora-extras-commits at redhat.com
Wed Aug 31 15:29:06 UTC 2005


Author: dcbw

Update of /cvs/fedora/extras-buildsys/builder
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11274/builder

Modified Files:
	builder.py 
Log Message:
Allow builder to write out default config file if one isn't found


Index: builder.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/builder/builder.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- builder.py	31 Aug 2005 01:56:38 -0000	1.36
+++ builder.py	31 Aug 2005 15:29:04 -0000	1.37
@@ -796,11 +796,8 @@
         help="location of the builder config file")
     (opts, args) = parser.parse_args()
 
-    if not opts.configfile or not os.path.exists(opts.configfile):
-        print "Must specify a valid config file."
-        sys.exit(1)
-    if not os.access(opts.configfile, os.R_OK):
-        print "Could not read the config file %s" % opts.configfile
+    if not opts.configfile:
+        print "Must specify a config file."
         sys.exit(1)
 
     # Load in the config




More information about the scm-commits mailing list