diff options
| author | Tobias Pistora <pistora.tobias@gmail.com> | 2025-08-13 11:20:41 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-14 10:31:10 +0100 |
| commit | 4c7b0007327d592b8f5d1f50ebb0325dc483bd87 (patch) | |
| tree | 1d0cb3e0decf2adba1a4f9085c2c39d17ecb33bd /scripts/lib/devtool | |
| parent | 0edb9bfda113281bcc3fa6558a9b647e50190d8c (diff) | |
| download | poky-4c7b0007327d592b8f5d1f50ebb0325dc483bd87.tar.gz | |
devtool: fix upgrade for recipes with git submodules
Fixes [YOCTO #15943]
Fixes invalid path argument while calling "git rev-list" from submodule folders.
Replaced the local __run() wrapper function with _run() at "git rev-list" command calls.
(From OE-Core rev: c1839a24f08a87984d475d23f37a7c923d424267)
Signed-off-by: Tobias Pistora <pistora.tobias@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool')
| -rw-r--r-- | scripts/lib/devtool/upgrade.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index d9aca6e2db..dda0a58098 100644 --- a/scripts/lib/devtool/upgrade.py +++ b/scripts/lib/devtool/upgrade.py | |||
| @@ -280,7 +280,7 @@ def _extract_new_source(newpv, srctree, no_patch, srcrev, srcbranch, branch, kee | |||
| 280 | # note is still attached to the old commit. Avoid this by making | 280 | # note is still attached to the old commit. Avoid this by making |
| 281 | # sure all old devtool related commits have a note attached to them | 281 | # sure all old devtool related commits have a note attached to them |
| 282 | # (this assumes git config notes.rewriteMode is set to ignore). | 282 | # (this assumes git config notes.rewriteMode is set to ignore). |
| 283 | (stdout, _) = __run('git rev-list devtool-base..%s' % target_branch) | 283 | (stdout, _) = _run('git rev-list devtool-base..%s' % target_branch, cwd=path) |
| 284 | for rev in stdout.splitlines(): | 284 | for rev in stdout.splitlines(): |
| 285 | if not oe.patch.GitApplyTree.getNotes(path, rev): | 285 | if not oe.patch.GitApplyTree.getNotes(path, rev): |
| 286 | oe.patch.GitApplyTree.addNote(path, rev, "dummy") | 286 | oe.patch.GitApplyTree.addNote(path, rev, "dummy") |
| @@ -298,7 +298,7 @@ def _extract_new_source(newpv, srctree, no_patch, srcrev, srcbranch, branch, kee | |||
| 298 | logger.warning('Command \'%s\' failed:\n%s' % (e.command, e.stdout)) | 298 | logger.warning('Command \'%s\' failed:\n%s' % (e.command, e.stdout)) |
| 299 | 299 | ||
| 300 | # Remove any dummy notes added above. | 300 | # Remove any dummy notes added above. |
| 301 | (stdout, _) = __run('git rev-list devtool-base..%s' % target_branch) | 301 | (stdout, _) = _run('git rev-list devtool-base..%s' % target_branch, cwd=path) |
| 302 | for rev in stdout.splitlines(): | 302 | for rev in stdout.splitlines(): |
| 303 | oe.patch.GitApplyTree.removeNote(path, rev, "dummy") | 303 | oe.patch.GitApplyTree.removeNote(path, rev, "dummy") |
| 304 | 304 | ||
