aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-11-23 12:25:00 -0800
committerCharlie Sharpsteen2011-11-23 12:25:00 -0800
commit52523c30e93e96c6c0a60cb314097e07641b70bb (patch)
tree43b2690413c4c507d920c7936e8b334dfc041c14 /Library
parent92f923b50ee65ff140ba388a1d0700c7da5fae26 (diff)
downloadhomebrew-52523c30e93e96c6c0a60cb314097e07641b70bb.tar.bz2
formula_installer.rb: Improve receipt check
Using `f.installed?` instead of `f.prefix.exist?` ensures something was created by the installation step before the install receipt is written.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 4590bf96c..61b2b608c 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -131,7 +131,7 @@ class FormulaInstaller
raise "Suspicious installation failure" unless $?.success?
# Write an installation receipt (a Tab) to the prefix
- Tab.for_install(f, args).write if f.prefix.exist?
+ Tab.for_install(f, args).write if f.installed?
end
end