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:
Avery Pennarun 2010-11-21 23:33:11 -08:00
commit 3209316856
3 changed files with 36 additions and 27 deletions

View file

@ -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)