diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-08-01 17:44:33 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-23 15:22:52 +0100 |
commit | 53019423e471cca2fcaf35709bdc9dc95c4a28dc (patch) | |
tree | 0b6e225dcd0dd31e2fdb1de2acc0026e5ef57e1e /scripts/relocate_sdk.py | |
parent | 58d3e1b89765c7e162c2e39d59fb80e72b59af09 (diff) | |
download | poky-53019423e471cca2fcaf35709bdc9dc95c4a28dc.tar.gz |
devtool/upgrade: correctly clean up when recipe filename isn't yet known
There is a coding error in the second invocation of _upgrade_error:
rf is passed into it before it is initialized in the try: block. And so
bogus recipes are left behind in the workspace, causing breakage.
Instead, rewrite the functions to take the recipe directory name in the
workspace layer, which can be calculated in advance.
(From OE-Core rev: a7d406dce577192f98d76dbae411c72a8b7f07d4)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
(cherry picked from commit e653996369c1d2b5ac8367ad85f4816d679b6c98)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/relocate_sdk.py')
0 files changed, 0 insertions, 0 deletions