From: Tomasz Dziendzielski Date: Sun, 31 Jan 2021 10:46:49 +0000 (+0100) Subject: lib/oe/patch.py: Ignore scissors line on applying patch X-Git-Tag: 2020-04.6-dunfell~23 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=22b0bd5ad09a0ac40f1d8043266fa5b68b532802;p=openembedded-core.git lib/oe/patch.py: Ignore scissors line on applying patch The "devtool modify" could remove message body before scissors line, so patches re-generated from git tree were incorrectly modified. Adding --no-scissors to "git am" invocation to prevent this behaviour. [YOCTO #12674] Signed-off-by: Tomasz Dziendzielski Signed-off-by: Richard Purdie (cherry picked from commit 13ea33fbd197b9ee3cf913d9995617115f22798f) Signed-off-by: Steve Sakoman --- diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index 7ca2e28b1f..7cd8436da5 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py @@ -512,7 +512,7 @@ class GitApplyTree(PatchTree): try: shellcmd = [patchfilevar, "git", "--work-tree=%s" % reporoot] self.gitCommandUserOptions(shellcmd, self.commituser, self.commitemail) - shellcmd += ["am", "-3", "--keep-cr", "-p%s" % patch['strippath']] + shellcmd += ["am", "-3", "--keep-cr", "--no-scissors", "-p%s" % patch['strippath']] return _applypatchhelper(shellcmd, patch, force, reverse, run) except CmdError: # Need to abort the git am, or we'll still be within it at the end