diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2023-12-06 21:55:31 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-08 16:58:34 +0000 |
commit | 9a5c1456ba90bf986c91d8aa92b1dfb7ed3d7ab0 (patch) | |
tree | c9973ae8b704f2c905394e8543a85d55a7df9831 /scripts/lib/devtool/standard.py | |
parent | dd2fb8f00acedf758f51a5afa7f04e5bc24ad15f (diff) | |
download | poky-9a5c1456ba90bf986c91d8aa92b1dfb7ed3d7ab0.tar.gz |
devtool: modify: Make --no-extract work again
This avoids the following error when using --no-extract, introduced in
commit 900129cbdf (devtool: add support for git submodules):
Traceback (most recent call last):
File ".../scripts/devtool", line 349, in <module>
ret = main()
File ".../scripts/devtool", line 336, in main
ret = args.func(args, config, basepath, workspace)
File ".../scripts/lib/devtool/standard.py", line 995, in modify
for commit in commits[name]:
KeyError: '.'
(From OE-Core rev: 6a44fb10ef4b90ee24f470362007d56183abc593)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/standard.py')
-rw-r--r-- | scripts/lib/devtool/standard.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 16ea328c6a..c5b6458d06 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py | |||
@@ -993,7 +993,8 @@ def modify(args, config, basepath, workspace): | |||
993 | '}\n') | 993 | '}\n') |
994 | if initial_revs: | 994 | if initial_revs: |
995 | for name, rev in initial_revs.items(): | 995 | for name, rev in initial_revs.items(): |
996 | f.write('\n# initial_rev %s: %s\n' % (name, rev)) | 996 | f.write('\n# initial_rev %s: %s\n' % (name, rev)) |
997 | if name in commits: | ||
997 | for commit in commits[name]: | 998 | for commit in commits[name]: |
998 | f.write('# commit %s: %s\n' % (name, commit)) | 999 | f.write('# commit %s: %s\n' % (name, commit)) |
999 | if branch_patches: | 1000 | if branch_patches: |