From c82baa70f0d1dc9f2315a2514aa6139201ff8ef1 Mon Sep 17 00:00:00 2001 From: Rod Schouteden Date: Wed, 27 Sep 2017 08:43:17 +0200 Subject: [PATCH] [IMP] allow options in patch_binary spit binary name, so extra options could be used, or git apply can be used instead of patch --- collective/recipe/patch/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collective/recipe/patch/__init__.py b/collective/recipe/patch/__init__.py index f8502b5..8f9c96d 100644 --- a/collective/recipe/patch/__init__.py +++ b/collective/recipe/patch/__init__.py @@ -115,7 +115,7 @@ def use_patch_binary(self, path, patch): cwd = os.getcwd() try: os.chdir(path) - p = Popen([self.binary, '-p0'], + p = Popen(self.binary.split(' ') + ['-p0'], stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True) output = p.communicate(open(patch).read())[0]