util: Use -i instead of redirection

GNU patch accepts -i to pass the patch file. Use that instead of
redirection.
This commit is contained in:
Ozan Çağlayan
2010-12-02 10:30:39 +00:00
parent 9d6394ac8f
commit ee312c44ff
+1 -1
View File
@@ -567,7 +567,7 @@ def do_patch(sourceDir, patchFile, level=0, name=None, reverse=False):
(ret, out, err) = run_batch('quilt push')
else:
# run GNU patch to apply original patch into tree
(ret, out, err) = run_batch("patch --remove-empty-files --no-backup-if-mismatch %s -p%d < \"%s\"" % (("-R" if reverse else ""), level, patchFile))
(ret, out, err) = run_batch("patch --remove-empty-files --no-backup-if-mismatch %s -p%d -i \"%s\"" % (("-R" if reverse else ""), level, patchFile))
if ret:
if out is None and err is None: