Browse Source

Fix book building

The args parameter to apply_async really needs to be (book, ), otherwise
nothing is passed and no books are build.

Change-Id: Icae89df5734b1be58f0e6ec8aecc1a31aef365f4
changes/60/60060/1
Andreas Jaeger 8 years ago
parent
commit
7da68f9033
  1. 4
      test.py
  2. 5
      validate.py

4
test.py

@ -457,10 +457,10 @@ def build_affected_books(rootdir, book_exceptions, file_exceptions,
print("Queuing the following books for building:")
for book in books:
print(" %s" % os.path.basename(book))
pool.apply_async(build_book, book,
pool.apply_async(build_book, (book, ),
callback=logging_build_book)
pool.close()
print("Building all books now...")
print("Building all queued %d books now..." % len(books))
pool.join()
any_failures = False

5
validate.py

@ -452,10 +452,10 @@ def build_affected_books(rootdir, book_exceptions, file_exceptions, force):
print("Queuing the following books for building:")
for book in books:
print(" %s" % os.path.basename(book))
pool.apply_async(build_book, book,
pool.apply_async(build_book, (book, ),
callback=logging_build_book)
pool.close()
print("Building all queued books now...")
print("Building all queued %d books now..." % len(books))
pool.join()
any_failures = False
@ -467,7 +467,6 @@ def build_affected_books(rootdir, book_exceptions, file_exceptions, force):
print(">>> Build of book %s failed (returncode = %d)."
% (book, returncode))
print("\n%s" % output)
if any_failures:
sys.exit(1)

Loading…
Cancel
Save