diff options
| author | Paulo Neves <paulo@myneves.com> | 2023-02-17 17:01:16 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-22 12:03:39 +0000 |
| commit | 97b258985a59fd4cfe982f694f95018dcab22c61 (patch) | |
| tree | ee4a81d23ac4903d0e1045eae855365957ee2f57 /scripts/lib/devtool/build_image.py | |
| parent | d085dcb4499750d45a2b429d836eefa347cd2450 (diff) | |
| download | poky-97b258985a59fd4cfe982f694f95018dcab22c61.tar.gz | |
bitbake: fetch/git: Replace mkdtemp with TemporaryDirectory and avoid exception masking
Due to using mkdtemp instead of TemporaryDirectory we needed to
manually cleanup the directory in a try finally block.
With tempfile.TemporaryDirectory we can handle the cleanup with
a "with" statement and not need to manually clean up oursevels.
(Bitbake rev: 36a231d2a45e7c87172196538d18ded81a234774)
Signed-off-by: Paulo Neves <paulo@myneves.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/build_image.py')
0 files changed, 0 insertions, 0 deletions
