Add clean no-op for system target
authorAndrew Gaffney <agaffney@gentoo.org>
Wed, 14 Jan 2009 13:44:49 +0000 (07:44 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Wed, 14 Jan 2009 13:44:49 +0000 (07:44 -0600)
ChangeLog
modules/catalyst/spawn.py
targets/system/system-controller.sh

index b16bd3847c2d4873ec85882747228debee5e723d..4aa49609980bd333b5f24061c35e27abe6847e4a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
 # 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,
index cfd1c0379901e3e28f42b98235627486de31eaa1..11e8497bf32b148cba272ffaeaa33480f88d8e7b 100644 (file)
@@ -298,9 +298,9 @@ def spawn(mycommand,env={},raw_exit_code=False,opt_name=None,fd_pipes=None,retur
 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
 
index f150c084ed5457af18bc0688f60068aeac86b1b0..419a9f22bc471a2f491699f802a4cef3fde85a26 100644 (file)
@@ -22,6 +22,8 @@ case $1 in
        preclean)
                exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-preclean-chroot.sh /${clst_root_path} || exit 1
        ;;
+       clean)
+       ;;
        *)
                exit 1
        ;;