Apparently quilt always ignores hunks that seem already applied, so let's do
the same via -f. -t would probably be better, but isn't safe to use from a
portability standpoint.
Signed-off-by: Chris Larson <chris_larson@mentor.com>
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)