diff options
| author | Jack Nagel | 2015-04-25 22:07:06 -0400 | 
|---|---|---|
| committer | Jack Nagel | 2015-04-25 23:14:05 -0400 | 
| commit | be74724ceb0b29fb75d322be50773eb2e30b0c10 (patch) | |
| tree | 0561d28b33f67b82773f6a7537b795ce455b2b0e /Library/Homebrew/formula_installer.rb | |
| parent | 606127a8f43b67a4a695a5c4d3739a44b7a577d8 (diff) | |
| download | homebrew-be74724ceb0b29fb75d322be50773eb2e30b0c10.tar.bz2 | |
Add Formula#logs
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 75cfa03d2..6271c08c1 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -462,7 +462,7 @@ class FormulaInstaller    end    def build -    FileUtils.rm Dir["#{HOMEBREW_LOGS}/#{formula.name}/*"] +    FileUtils.rm_rf(formula.logs)      @start_time = Time.now @@ -481,9 +481,8 @@ class FormulaInstaller      Utils.safe_fork do        if Sandbox.available? && ARGV.sandbox?          sandbox = Sandbox.new -        logd = HOMEBREW_LOGS/formula.name -        logd.mkpath -        sandbox.record_log(logd/"sandbox.build.log") +        formula.logs.mkpath +        sandbox.record_log(formula.logs/"sandbox.build.log")          sandbox.allow_write_temp_and_cache          sandbox.allow_write_log(formula)          sandbox.allow_write_cellar(formula) | 
