diff options
author | Steven Knight <knight@baldmt.com> | 2005-04-26 04:14:40 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-04-26 04:14:40 (GMT) |
commit | 68a29a4d7f4689ce6200b3e34441f2a8df9f88a0 (patch) | |
tree | 4469aa200175c39f9d91eb1f655997a2aa87ced5 /src/engine/SCons/Node | |
parent | a1792d6a51a10202c0462eba85febc7255d10abf (diff) | |
download | SCons-68a29a4d7f4689ce6200b3e34441f2a8df9f88a0.zip SCons-68a29a4d7f4689ce6200b3e34441f2a8df9f88a0.tar.gz SCons-68a29a4d7f4689ce6200b3e34441f2a8df9f88a0.tar.bz2 |
More flexible (and Make-like) ignoring command exit status, and suppressing printing of a command.
Diffstat (limited to 'src/engine/SCons/Node')
-rw-r--r-- | src/engine/SCons/Node/__init__.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/engine/SCons/Node/__init__.py b/src/engine/SCons/Node/__init__.py index 28f1c19..f9390ea 100644 --- a/src/engine/SCons/Node/__init__.py +++ b/src/engine/SCons/Node/__init__.py @@ -227,10 +227,12 @@ class Node: so only do thread safe stuff here. Do thread unsafe stuff in built(). """ - def errfunc(stat, node=self): - raise SCons.Errors.BuildError(node=node, errstr="Error %d" % stat) + def exitstatfunc(stat, node=self): + if stat: + msg = "Error %d" % stat + raise SCons.Errors.BuildError(node=node, errstr=msg) executor = self.get_executor() - apply(executor, (self, errfunc), kw) + apply(executor, (self, exitstatfunc), kw) def built(self): """Called just after this node is successfully built.""" |