From ee312c44ff75c5df5eec22c42651510f6ecd5d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= Date: Thu, 2 Dec 2010 10:30:39 +0000 Subject: [PATCH] util: Use -i instead of redirection GNU patch accepts -i to pass the patch file. Use that instead of redirection. --- pisi/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/util.py b/pisi/util.py index c982f348..e94c3032 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -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: