diff options
| author | Jack Nagel | 2014-12-26 19:42:11 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-12-26 19:42:11 -0500 |
| commit | d2d7516cc04ec31f105eda64f87b79db316bcb2f (patch) | |
| tree | eec9273046e8ccc33c146a51e6c75a3f0117671f /Library | |
| parent | 2ff86eb4175db91a918379736c414c122a9a1236 (diff) | |
| download | brew-d2d7516cc04ec31f105eda64f87b79db316bcb2f.tar.bz2 | |
Allow debugging patching failures
Closes Homebrew/homebrew#33056.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/debrew.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/patch.rb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/debrew.rb b/Library/Homebrew/debrew.rb index dae4a9758..eda533d56 100644 --- a/Library/Homebrew/debrew.rb +++ b/Library/Homebrew/debrew.rb @@ -21,6 +21,10 @@ module Debrew Debrew.debrew { super } end + def patch + Debrew.debrew { super } + end + def test Debrew.debrew { super } end 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 |
