Merge pull request #5291 from MikeMcQuaid/no_tap_auto_upgrade

formula_installer: don't automatically upgrade from another tap.
This commit is contained in:
Mike McQuaid 2018-11-11 09:54:00 +00:00 committed by GitHub
commit 85da60726f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -568,6 +568,14 @@ class FormulaInstaller
installed_keg.rename(tmp_keg)
end
tab_tap = tab.source["tap"]
if df.tap.to_s != tab_tap
odie <<~EOS
#{df} is already installed from #{tab_tap}!
Please `brew uninstall #{df}` first."
EOS
end
fi = FormulaInstaller.new(df)
fi.options |= tab.used_options
fi.options |= Tab.remap_deprecated_options(df.deprecated_options, dep.options)