diff options
| author | Charlie Sharpsteen | 2011-11-23 12:25:00 -0800 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-11-23 12:25:00 -0800 |
| commit | e04e23492cd011cb0073f9bd5614bdce8e03b39e (patch) | |
| tree | 3776230692f6a82ff9dc7b02610d6f4aea2e3399 /Library | |
| parent | 17d83b735a823408994f5f440b16518412fa4574 (diff) | |
| download | brew-e04e23492cd011cb0073f9bd5614bdce8e03b39e.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 4590bf96c..61b2b608c 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 |
