mirror of
https://git.yoctoproject.org/poky
synced 2026-03-16 04:09:39 +01:00
lib/oe/patch: fall back to patch if git apply fails
When PATCHTOOL = "git", git apply doesn't support fuzzy application, so if a patch requires that it's better to be able to apply it rather than just failing. (From OE-Core rev: a8143f33d3104adcd10968e3b05df2024e723f5a) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
de8730ce2d
commit
e03c04758b
@@ -219,7 +219,11 @@ class GitApplyTree(PatchTree):
|
||||
return _applypatchhelper(shellcmd, patch, force, reverse, run)
|
||||
except CmdError:
|
||||
shellcmd = ["git", "--git-dir=.", "apply", "-p%s" % patch['strippath']]
|
||||
return _applypatchhelper(shellcmd, patch, force, reverse, run)
|
||||
try:
|
||||
output = _applypatchhelper(shellcmd, patch, force, reverse, run)
|
||||
except CmdError:
|
||||
output = PatchTree._applypatch(self, patch, force, reverse, run)
|
||||
return output
|
||||
|
||||
|
||||
class QuiltTree(PatchSet):
|
||||
|
||||
Reference in New Issue
Block a user