summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/filemap.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2023-03-23 12:54:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-04-04 17:46:24 +0100
commitb99bc8c33f165e73265f8ca34bff6075129dac3d (patch)
treefa5a7d0dab08c246a7f957c5216046d6bec48f20 /scripts/lib/wic/filemap.py
parentc8dcc24807812127e8952f8144a85f40449422e6 (diff)
downloadpoky-b99bc8c33f165e73265f8ca34bff6075129dac3d.tar.gz
scripts/lib/buildstats: handle top-level build_stats not being complete
If we try to parse a buildstats directory which was either aborted or is still being built then the top-level build_stats file doesn't contain an elapsed value which causes an exception: UnboundLocalError: local variable 'elapsed' referenced before assignment Default both start and elapsed to 0 so that the parse succeeds. (From OE-Core rev: 6c9ca2f2de98c84d11beccbfde7c1e26cb25dfb6) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit 701d985aa8f2e9c2b9c0736fa25b424f3701889e) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/filemap.py')
0 files changed, 0 insertions, 0 deletions