From 2dbe54c2dfa137aa0f0a15b82c70586abf99ddc1 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 8 Aug 2009 14:10:32 +0100 Subject: Ensure ENV is pristine for each installation Because we modified the ENV global each install this propagated to consecutive formulae. So exec a new brew process each install. This is the safest way although Ruby exceptions don't propagate to the parent process so I worry about it somewhat. --- Library/Homebrew/brew.h.rb | 2 +- Library/Homebrew/keg.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index a858a0bf2..8f5408e1b 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -179,7 +179,7 @@ def prune else # always showing symlinks text is deliberate print "Pruned #{$n} symbolic links " - print "and #{$n} directories " if $d > 0 + print "and #{$d} directories " if $d > 0 puts "from #{HOMEBREW_PREFIX}" end end diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 69e11983d..a2ef1701c 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -38,7 +38,7 @@ class Keg