formula_installer: fix build_from_source? call.

This should check the local instance variable rather than the global
value as it varies for dependencies and requested formulae.
This commit is contained in:
Mike McQuaid 2020-04-21 13:26:37 +01:00
parent cc6ccc45cd
commit b3a7ad7ca6
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -97,7 +97,7 @@ class FormulaInstaller
return false if !formula.bottled? && !formula.local_bottle_path
return true if force_bottle?
return false if Homebrew.args.build_from_source || build_bottle? || interactive?
return false if build_from_source? || build_bottle? || interactive?
return false if ARGV.cc
return false unless options.empty?
return false if formula.bottle_disabled?