# Copyright 2002-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS)
# Distributed under the GPL v2
+ 14 Jan 2009; Andrew Gaffney <agaffney@gentoo.org>
+ modules/catalyst/spawn.py, targets/system/system-controller.sh:
+ Add clean no-op for system target
+
14 Jan 2009; Andrew Gaffney <agaffney@gentoo.org>
modules/catalyst/arch/alpha.py, modules/catalyst/arch/amd64.py,
modules/catalyst/arch/arm.py, modules/catalyst/arch/hppa.py,
def cmd(mycmd,myexc="",env={}):
try:
sys.stdout.flush()
- retval=spawn_bash(mycmd,env)
+ retval = spawn_bash(mycmd, env)
if retval != 0:
- raise CatalystError,myexc
+ raise CatalystError(myexc + " (exit code " + str(retval) + ")")
except:
raise