Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 52523c30e93e96c6c0a60cb314097e07641b70bb 1 parent 92f923b
@Sharpie Sharpie authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Library/Homebrew/formula_installer.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.