builder.py: now the only exported function is main().
We can also avoid forking altogether if should_build() returns false. This doesn't seem to result in any noticeable speedup, but it's cleaner at least.
This commit is contained in:
parent
547dbe550f
commit
3209316856
3 changed files with 36 additions and 27 deletions
4
redo.py
4
redo.py
|
|
@ -67,11 +67,9 @@ try:
|
|||
err('invalid --jobs value: %r\n' % opt.jobs)
|
||||
jwack.setup(j)
|
||||
try:
|
||||
retcode = builder.main(targets, builder.build)
|
||||
retcode = builder.main(targets, lambda t: True)
|
||||
finally:
|
||||
jwack.force_return_tokens()
|
||||
#if retcode:
|
||||
# err('exiting: %d\n' % retcode)
|
||||
sys.exit(retcode)
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(200)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue