* ./goodies:
- Bug: In buildCoriolis.py, io tool was both declared as belonging to io and hurricane project. Removed from Hurricane. - Bug: In buildCoriolis.py, exctract correctly the return status of a command to return it to the parent process. See Python documentation about os.wait() & os.waitpid().
This commit is contained in:
parent
d55da89955
commit
3f10d44549
|
@ -151,8 +151,9 @@ class ProjectBuilder:
|
||||||
def _execute ( self, command, error ):
|
def _execute ( self, command, error ):
|
||||||
child = subprocess.Popen ( command, env=self._environment, stdout=None )
|
child = subprocess.Popen ( command, env=self._environment, stdout=None )
|
||||||
(pid,status) = os.waitpid ( child.pid, 0 )
|
(pid,status) = os.waitpid ( child.pid, 0 )
|
||||||
|
status >>= 8
|
||||||
if status != 0:
|
if status != 0:
|
||||||
print "[ERROR] %s (%d)." % (error,status)
|
print "[ERROR] %s (status:%d)." % (error,status)
|
||||||
sys.exit ( status )
|
sys.exit ( status )
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -334,8 +335,7 @@ if __name__ == "__main__":
|
||||||
)
|
)
|
||||||
|
|
||||||
coriolis = Project ( name = "coriolis"
|
coriolis = Project ( name = "coriolis"
|
||||||
, tools =[ "io"
|
, tools =[ "hurricane"
|
||||||
, "hurricane"
|
|
||||||
, "crlcore"
|
, "crlcore"
|
||||||
, "knik"
|
, "knik"
|
||||||
, "katabatic"
|
, "katabatic"
|
||||||
|
|
Loading…
Reference in New Issue