The list of patches will be used by _export_patches() in devtool to add new patches in the correct order.
Signed-off-by: Peter Kjellerstedt <[email protected]> --- PATCHv2: New patch. meta/lib/oe/patch.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index 246fc6221f..afc42df8a7 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py @@ -516,6 +516,7 @@ class GitApplyTree(PatchTree): import tempfile import shutil tempdir = tempfile.mkdtemp(prefix='oepatch') + patches = [] try: for name, rev in startcommits.items(): shellcmd = ["git", "format-patch", "--no-signature", "--no-numbered", rev, "-o", tempdir] @@ -553,11 +554,14 @@ class GitApplyTree(PatchTree): outfile = notes.get(GitApplyTree.original_patch, os.path.basename(srcfile)) bb.utils.mkdirhier(os.path.join(outdir, name)) - with open(os.path.join(outdir, name, outfile), 'w') as of: + patch = os.path.join(outdir, name, outfile) + with open(patch, 'w') as of: for line in patchlines: of.write(line) + patches.append(patch) finally: shutil.rmtree(tempdir) + return patches def _need_dirty_check(self): fetch = bb.fetch2.Fetch([], self.d)
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#231919): https://lists.openembedded.org/g/openembedded-core/message/231919 Mute This Topic: https://lists.openembedded.org/mt/117986096/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
