poky/scripts/lib
Julien Stephan 1ae4cc7a11 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: 5b77f60e85d07921ae5e808daa1fd7d8c3dc40ea)

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>
2023-12-01 11:48:25 +00:00
..
build_perf meta: correct collections vs collections.abc deprecation 2021-09-19 11:33:14 +01:00
checklayer lib/oe/sstatesig.py: dump locked.sigs.inc only when explicitly asked via -S lockedsigs 2023-10-27 10:53:43 +01:00
devtool devtool: finish/update-recipe: restrict mode srcrev to recipes fetched from SCM 2023-12-01 11:48:25 +00:00
recipetool recipetool: Add handler to create go recipes 2023-11-06 16:41:11 +00:00
resulttool scripts/resulttool: group all regressions in regression report 2023-11-05 08:44:06 +00:00
wic wic: rawcopy: add support for zstd decompression 2023-11-27 22:54:59 +00:00
argparse_oe.py scripts: Add copyright statements to files without one 2022-08-12 11:58:01 +01:00
buildstats.py scripts/lib/buildstats: handle top-level build_stats not being complete 2023-03-25 09:39:28 +00:00
scriptpath.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
scriptutils.py recipes/classes/scripts: Drop SRCPV usage in OE-Core 2023-08-24 16:50:24 +01:00