aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_installer.rb
diff options
context:
space:
mode:
authorJack Nagel2014-04-05 10:48:54 -0500
committerJack Nagel2014-04-05 10:48:54 -0500
commit709f5635174e4c33729c69d3d56fe63899ce70ec (patch)
tree995b75480b4315942a425f3c5e0c22b730419f83 /Library/Homebrew/formula_installer.rb
parentba16e128a82adf4a7010c741f58c8f23fc9a402a (diff)
downloadhomebrew-709f5635174e4c33729c69d3d56fe63899ce70ec.tar.bz2
Load install receipt before performing any operations on existing kegs
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
-rw-r--r--Library/Homebrew/formula_installer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 2e67fa5ee..d0a38994c 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -359,11 +359,12 @@ class FormulaInstaller
def install_dependency(dep, inherited_options)
df = dep.to_formula
+ tab = Tab.for_formula(df)
outdated_keg = Keg.new(df.linked_keg.realpath) if df.linked_keg.directory?
fi = DependencyInstaller.new(df)
- fi.options |= Tab.for_formula(df).used_options
+ fi.options |= tab.used_options
fi.options |= dep.options
fi.options |= inherited_options
fi.build_from_source = build_from_source?