diff options
author | Julien Stephan <jstephan@baylibre.com> | 2023-11-22 12:08:14 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-01-04 04:09:44 -1000 |
commit | d8a257d2c18b4a4726f1b37b86c65d10ce970f75 (patch) | |
tree | 400752dd6b1c4ff28feb7b749e132d0c44441e03 /scripts/lib/scriptutils.py | |
parent | 97bdfea69801a7c2dc163edbaa639a31348b6817 (diff) | |
download | poky-d8a257d2c18b4a4726f1b37b86c65d10ce970f75.tar.gz |
devtool: finish/update-recipe: restrict mode srcrev to recipes fetched from SCM
When specifying --mode / -m srcrev with devtool finish/update-recipe on
recipes that are not fetched from a SCM repository we get the following
error:
Traceback (most recent call last):
[..]
File "<...>/poky/meta/lib/oe/patch.py", line 49, in runcmd
raise CmdError(cmd, exitstatus >> 8, "stdout: %s\nstderr: %s" % (stdout, stderr))
oe.patch.CmdError: Command Error: 'sh -c 'git format-patch --no-signature --no-numbered INVALID -o /tmp/oepatchbj7pfmzj -- .'' exited with 0 Output:
stdout:
stderr: fatal: bad revision 'INVALID'
Fix this by adding a check and abort with a proper error message.
(From OE-Core rev: 9254b08fbfba3734d5bc717a382d909595833db1)
Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5b77f60e85d07921ae5e808daa1fd7d8c3dc40ea)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/lib/scriptutils.py')
0 files changed, 0 insertions, 0 deletions