layerindex: Update tinfoil to call shutdown method

The new client/server API of tinfoil requires explicit call of
shutdown method to send the event for finalize cooker process.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Aníbal Limón 2017-01-11 21:53:50 +13:00 committed by Paul Eggleton
parent e0d163341e
commit f0f61bf574
3 changed files with 3 additions and 0 deletions

View File

@ -231,6 +231,7 @@ def main():
outp = generate_patches(tinfoil, fetchdir, changeset, sys.argv[2]) outp = generate_patches(tinfoil, fetchdir, changeset, sys.argv[2])
finally: finally:
tinfoil.shutdown()
utils.unlock_file(lockfile) utils.unlock_file(lockfile)
if outp: if outp:

View File

@ -89,6 +89,7 @@ def main():
except Exception as e: except Exception as e:
logger.info("Unable to read %s: %s", fullpath, str(e)) logger.info("Unable to read %s: %s", fullpath, str(e))
tinfoil.shutdown()
sys.exit(0) sys.exit(0)

View File

@ -203,6 +203,7 @@ def main():
transaction.rollback() transaction.rollback()
finally: finally:
transaction.leave_transaction_management() transaction.leave_transaction_management()
tinfoil.shutdown()
shutil.rmtree(tempdir) shutil.rmtree(tempdir)
sys.exit(0) sys.exit(0)