kadischi/livecd_generator kadischi.py,1.50,1.51

Jasper O'neal Hartline (autopsy) fedora-extras-commits at redhat.com
Fri Sep 22 05:36:05 UTC 2006


Author: autopsy

Update of /cvs/devel/kadischi/livecd_generator
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23693/kadischi/livecd_generator

Modified Files:
	kadischi.py 
Log Message:
Fail somewhat gracefully if build looks incomplete


Index: kadischi.py
===================================================================
RCS file: /cvs/devel/kadischi/livecd_generator/kadischi.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- kadischi.py	18 Sep 2006 06:53:27 -0000	1.50
+++ kadischi.py	22 Sep 2006 05:36:03 -0000	1.51
@@ -143,7 +143,11 @@
         anaconda_args.append("--rootpath=%s" % sysdir)
         anaconda_args.append("--method=%s" % method)
         execute(anaconda_args)
-        print "\n[kadischi]: anaconda has finished its job \n"
+        if not os.path.exists(sysdir + "/root/anaconda-ks.cfg"):
+            cleanup(builddir)
+            sys.exit(1)
+        else:
+            print "\n[kadischi]: anaconda has finished its job \n" 
 
     # run post_install_scripts
     if os.access("/.livecd", os.R_OK):




More information about the fedora-extras-commits mailing list