From eefbf00963c28ba1a80d9f1f5c26eb46f02229e6 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Wed, 16 Nov 2011 10:42:02 -0800 Subject: Don't write receipt for empty installs Fixes Homebrew/homebrew#8616. --- Library/Homebrew/formula_installer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 97292d984..1a4250486 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 + Tab.for_install(f, args).write if f.prefix.exist? end end -- cgit v1.2.3