mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 09:32:13 +02:00
meta/lib/oe/patch.py: do not leave .orig files if a patch isn't perfectly matching
Particularly, this was causing 'devtool modify' to erroneously add those .orig files into commits. This was getting in the way, if the goal was to amend/update those existing patches. (From OE-Core rev: f4f3406c3bd9599d7a19275475d52bda4c42f2ab) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a3e8538a38
commit
7dce685fe4
@@ -212,7 +212,7 @@ class PatchTree(PatchSet):
|
||||
self.patches.insert(i, patch)
|
||||
|
||||
def _applypatch(self, patch, force = False, reverse = False, run = True):
|
||||
shellcmd = ["cat", patch['file'], "|", "patch", "-p", patch['strippath']]
|
||||
shellcmd = ["cat", patch['file'], "|", "patch", "--no-backup-if-mismatch", "-p", patch['strippath']]
|
||||
if reverse:
|
||||
shellcmd.append('-R')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user