From d2d7516cc04ec31f105eda64f87b79db316bcb2f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 26 Dec 2014 19:42:11 -0500 Subject: Allow debugging patching failures Closes Homebrew/homebrew#33056. --- Library/Homebrew/patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/patch.rb') diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index 2adb808f3..72deabefd 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -128,7 +128,7 @@ class ExternalPatch resource.unpack do # Assumption: the only file in the staging directory is the patch patchfile = Pathname.pwd.children.first - safe_system "/usr/bin/patch", "-g", "0", "-f", "-d", dir, "-#{strip}", "-i", patchfile + dir.cd { safe_system "/usr/bin/patch", "-g", "0", "-f", "-#{strip}", "-i", patchfile } end end -- cgit v1.2.3