[Pkg-uml-commit] r206 - trunk/src/rootstrap
Mattia Dongili
malattia at costa.debian.org
Mon Sep 18 19:18:35 UTC 2006
Author: malattia
Date: 2006-09-18 19:18:33 +0000 (Mon, 18 Sep 2006)
New Revision: 206
Modified:
trunk/src/rootstrap/builder
Log:
try to decode errors - Closes 38806
Modified: trunk/src/rootstrap/builder
===================================================================
--- trunk/src/rootstrap/builder 2006-09-18 19:16:26 UTC (rev 205)
+++ trunk/src/rootstrap/builder 2006-09-18 19:18:33 UTC (rev 206)
@@ -28,7 +28,8 @@
if argsplit[0] == 'rsworkdir':
workdir = os.path.expanduser(argsplit[1])
elif argsplit[0] == 'rsconfig':
- configfile = '/tmp/host' + os.path.expanduser(os.path.join('/tmp/host',os.path.expanduser(argsplit[1])))
+ configfile = '/tmp/host' + \
+ os.path.expanduser(os.path.join('/tmp/host',os.path.expanduser(argsplit[1])))
os.system("mount -t hostfs hostfs -o %s /etc/rootstrap/workdir" % workdir)
@@ -53,14 +54,16 @@
if status != 0:
if "debug" in vars and vars["debug"] == "true":
- print "Module %s failed with status %d" % (module,status)
+ print "Module %s failed with status %s (%d)" % \
+ (module,os.strerror(status),status)
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" % (module,status)
+ raise "rootstrap: Module '%s' failed, status: %s (%d)" % \
+ (module,os.strerror(status),status)
return
raise "rootstrap: unknown module: %s\n" % module
More information about the Pkg-uml-commit
mailing list