mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
rrs_upstream_history: use try...finally to ensure tinfoil is shut down
We want tinfoil.shutdown() to be called even if an exception occurs. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
7831eec543
commit
000ebf4d59
|
@ -173,9 +173,9 @@ if __name__=="__main__":
|
||||||
|
|
||||||
(tinfoil, d, recipes) = load_recipes(layerbranch, bitbakepath,
|
(tinfoil, d, recipes) = load_recipes(layerbranch, bitbakepath,
|
||||||
fetchdir, settings, logger, recipe_files=recipe_files)
|
fetchdir, settings, logger, recipe_files=recipe_files)
|
||||||
|
try:
|
||||||
|
|
||||||
if not recipes:
|
if not recipes:
|
||||||
tinfoil.shutdown()
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
utils.setup_core_layer_sys_path(settings, layerbranch.branch.name)
|
utils.setup_core_layer_sys_path(settings, layerbranch.branch.name)
|
||||||
|
@ -201,6 +201,7 @@ if __name__=="__main__":
|
||||||
logger.debug('%s: layer branch %s, pv %s, upstream (%s)' % (recipe.pn,
|
logger.debug('%s: layer branch %s, pv %s, upstream (%s)' % (recipe.pn,
|
||||||
str(layerbranch), recipe.pv, str(ru)))
|
str(layerbranch), recipe.pv, str(ru)))
|
||||||
|
|
||||||
|
finally:
|
||||||
tinfoil.shutdown()
|
tinfoil.shutdown()
|
||||||
if options.dry_run:
|
if options.dry_run:
|
||||||
raise DryRunRollbackException
|
raise DryRunRollbackException
|
||||||
|
|
Loading…
Reference in New Issue
Block a user