diff options
| -rw-r--r-- | Cellar/homebrew/brewkit.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Cellar/homebrew/brewkit.rb b/Cellar/homebrew/brewkit.rb index 3c1df89d8..96c653767 100644 --- a/Cellar/homebrew/brewkit.rb +++ b/Cellar/homebrew/brewkit.rb @@ -81,6 +81,15 @@ class Formula #TODO maybe README, etc. to versioned root end end + rescue + if ARGV.include? '--debug' + # debug mode allows the packager to intercept a failed build and + # investigate the problems + puts "Rescued build at: #{tmp}" + exit! 1 + else + raise + end ensure FileUtils.rm_rf tmp end |
