aboutsummaryrefslogtreecommitdiff
path: root/lib/oe/patch.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oe/patch.py')
-rw-r--r--lib/oe/patch.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/oe/patch.py b/lib/oe/patch.py
index 29d5102..4e709be 100644
--- a/lib/oe/patch.py
+++ b/lib/oe/patch.py
@@ -73,16 +73,13 @@ class PatchTree(PatchSet):
self.patches.insert(i, patch)
def _applypatch(self, patch, force = False, reverse = False, run = True):
- shellcmd = ["patch", "-p%s" % patch['strippath']]
+ shellcmd = ["patch", "-p%s" % patch['strippath'], "-f"]
if reverse:
shellcmd.append('-R')
if not run:
return subprocess.list2cmdline(shellcmd)
- if force:
- shellcmd.append('-f')
-
patch = open(patch['file'], "r")
return oe.process.run(shellcmd, cwd=self.dir, env=self.env, stdin=patch)