aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-04-05 10:48:54 -0500
committerJack Nagel2014-04-05 10:48:54 -0500
commite4f41b9b2401bacb249d016695378cbd7bf7806b (patch)
tree921717a3450a7a3da3cbbe8c9d55a113511f617d /Library
parent1e20d9149b87ff8996f6612c93e787e0ab472920 (diff)
downloadbrew-e4f41b9b2401bacb249d016695378cbd7bf7806b.tar.bz2
Load install receipt before performing any operations on existing kegs
Diffstat (limited to 'Library')
-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?