diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-08-02 09:24:35 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-04 11:44:28 +0100 |
commit | 5fa764fff8903d386e4fb4b5e8e530d31936823d (patch) | |
tree | 79b8ca04f813df6d54edb868bd46352cbb54941d /scripts/lib/scriptutils.py | |
parent | b3286e3024041d8417ba7eb0ca24400ccc820ab9 (diff) | |
download | poky-5fa764fff8903d386e4fb4b5e8e530d31936823d.tar.gz |
devtool/upgrade: raise an error if extracting source produces more than one directory
This can happen if running unpack task produces unrelated files and directories
(e.g. if recipe_qa or other tasks run); in this case it's better to stop, rather
than allow devtool to continue and error out much later with a message that has
nothing to do with where the problem originated.
The idea here was to handle tarballs that don't contain a top level directory and thus
the source tree is one level up; this basically never happens, and if it does we
should find a less brittle way to handle such tarballs.
(From OE-Core rev: b25e922b271794906b22450c7e6cc18fcab51ff8)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptutils.py')
0 files changed, 0 insertions, 0 deletions