]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
patch.bbclass: Make use of oe.patch.GitApplyTree.commitIgnored()
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Mon, 19 Feb 2024 01:28:31 +0000 (02:28 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Feb 2024 16:02:20 +0000 (16:02 +0000)
This makes use of the oe.patch.GitApplyTree.commitIgnored() function to
create commits that shall be ignored by `devtool finish`.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/patch.bbclass

index e3157c7b18877c7af787f0e21b9983510e077f05..e5786b1c9ad49dd6def9c33f4cf882f2ae45d952 100644 (file)
@@ -79,9 +79,7 @@ python patch_task_postfunc() {
                         bb.process.run('git checkout patches', cwd=srcsubdir)
         stdout, _ = bb.process.run('git status --porcelain .', cwd=srcsubdir)
         if stdout:
-            useroptions = []
-            oe.patch.GitApplyTree.gitCommandUserOptions(useroptions, d=d)
-            bb.process.run('git add .; git %s commit -a -m "Committing changes from %s\n\n%s"' % (' '.join(useroptions), func, oe.patch.GitApplyTree.ignore_commit_prefix + ' - from %s' % func), cwd=srcsubdir)
+            oe.patch.GitApplyTree.commitIgnored("Add changes from %s" % func, dir=srcsubdir, files=['.'], d=d)
 }
 
 def src_patches(d, all=False, expand=True):