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
commite04e23492cd011cb0073f9bd5614bdce8e03b39e (patch)
tree3776230692f6a82ff9dc7b02610d6f4aea2e3399 /Library
parent17d83b735a823408994f5f440b16518412fa4574 (diff)
downloadbrew-e04e23492cd011cb0073f9bd5614bdce8e03b39e.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