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.
This commit is contained in:
Charlie Sharpsteen 2011-11-23 12:25:00 -08:00
parent 17d83b735a
commit e04e23492c

View File

@ -131,7 +131,7 @@ class FormulaInstaller
raise "Suspicious installation failure" unless $?.success? raise "Suspicious installation failure" unless $?.success?
# Write an installation receipt (a Tab) to the prefix # 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
end end