From e04e23492cd011cb0073f9bd5614bdce8e03b39e Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Wed, 23 Nov 2011 12:25:00 -0800 Subject: [PATCH] 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. --- Library/Homebrew/formula_installer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 4590bf96c9..61b2b608c4 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