[Pkg-uml-commit] r249 - trunk/src/rootstrap
Mattia Dongili
malattia at alioth.debian.org
Sun Nov 12 14:20:28 CET 2006
Author: malattia
Date: 2006-11-12 14:20:27 +0100 (Sun, 12 Nov 2006)
New Revision: 249
Modified:
trunk/src/rootstrap/builder
Log:
fix indentation (damn) and print help when getting the debug shell
Modified: trunk/src/rootstrap/builder
===================================================================
--- trunk/src/rootstrap/builder 2006-11-11 21:24:54 UTC (rev 248)
+++ trunk/src/rootstrap/builder 2006-11-12 13:20:27 UTC (rev 249)
@@ -56,14 +56,19 @@
if "debug" in vars and vars["debug"] == "true":
print "Module %s failed with status %d: %s" % \
(module,status,os.strerror(status))
+ print "The exit value from the shell will be evaluated:"
+ print " 0 --> exit and raise exception"
+ print " 1 --> re-eval script that failed"
+ print " 2 --> go on with next script"
+ print " N --> exit and raise exception"
debug_exit = os.spawnle(os.P_WAIT, "/bin/sh", "/bin/sh", vars)
if debug_exit == 1:
continue
elif debug_exit == 2:
return
- raise "rootstrap: Module '%s' failed, status %d: %s" % \
- (module,status,os.strerror(status))
+ raise "rootstrap: Module '%s' failed, status %d: %s" % \
+ (module,status,os.strerror(status))
return
raise "rootstrap: unknown module: %s\n" % module
More information about the Pkg-uml-commit
mailing list