Permalink
Browse files

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.
  • Loading branch information...
1 parent 92f923b commit 52523c30e93e96c6c0a60cb314097e07641b70bb @Sharpie Sharpie committed Nov 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Library/Homebrew/formula_installer.rb
@@ -131,7 +131,7 @@ def build
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

0 comments on commit 52523c3

Please sign in to comment.