diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-09-14 16:09:42 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-17 23:23:21 +0100 |
commit | 56005ab7c12545ce23f6c3b3ab4315fc7b5e2697 (patch) | |
tree | 87025f5ba07bdc132d017421a07b63ef6385536e /scripts/lib/devtool/upgrade.py | |
parent | a9b1aaced19bdafe5e3fb33cf455555d30b1a3ab (diff) | |
download | poky-56005ab7c12545ce23f6c3b3ab4315fc7b5e2697.tar.gz |
bitbake: cooker: ensure monkey-patching in collect_bbfiles() gets undone on error
In collect_bbfiles() we're monkey-patching os.listdir in order to find
which directories to watch, and then undoing that when we're finished -
however if an exception occurred for any reason there was nothing to
ensure the latter occurred. This may not have caused any issues, but as
this kind of thing really ought to be secured using try...finally just
in case, so do that.
(Bitbake rev: 013047484a03185c0ce281c53c1db4949cdc4e69)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/upgrade.py')
0 files changed, 0 insertions, 0 deletions