aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-11-16 10:42:02 -0800
committerCharlie Sharpsteen2011-11-16 10:42:02 -0800
commiteefbf00963c28ba1a80d9f1f5c26eb46f02229e6 (patch)
treee914f0838e0647e8f7f186285bc5f6961e4c2e8c /Library
parentebfa4d5dc0a0ea1e6a719a6f6c2c9ec38088b473 (diff)
downloadbrew-eefbf00963c28ba1a80d9f1f5c26eb46f02229e6.tar.bz2
Don't write receipt for empty installs
Fixes Homebrew/homebrew#8616.
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 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