mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
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:
parent
e0d163341e
commit
f0f61bf574
|
@ -231,6 +231,7 @@ def main():
|
|||
|
||||
outp = generate_patches(tinfoil, fetchdir, changeset, sys.argv[2])
|
||||
finally:
|
||||
tinfoil.shutdown()
|
||||
utils.unlock_file(lockfile)
|
||||
|
||||
if outp:
|
||||
|
|
|
@ -89,6 +89,7 @@ def main():
|
|||
except Exception as e:
|
||||
logger.info("Unable to read %s: %s", fullpath, str(e))
|
||||
|
||||
tinfoil.shutdown()
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
|
|
|
@ -203,6 +203,7 @@ def main():
|
|||
transaction.rollback()
|
||||
finally:
|
||||
transaction.leave_transaction_management()
|
||||
tinfoil.shutdown()
|
||||
|
||||
shutil.rmtree(tempdir)
|
||||
sys.exit(0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user