Allow debugging patching failures

Closes Homebrew/homebrew#33056.
This commit is contained in:
Jack Nagel 2014-12-26 19:42:11 -05:00
parent 2ff86eb417
commit d2d7516cc0
2 changed files with 5 additions and 1 deletions

View File

@ -21,6 +21,10 @@ module Debrew
Debrew.debrew { super }
end
def patch
Debrew.debrew { super }
end
def test
Debrew.debrew { super }
end

View File

@ -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