Reduce the number of things that trigger ARGV.build_from_source?

The newly generalized bottle implementation removes the need to
defensively check for --devel, --HEAD, and others in this method.
This commit is contained in:
Jack Nagel 2014-03-10 14:56:02 -05:00
parent 7da459874f
commit 9bc8d0820e

View File

@ -143,8 +143,7 @@ module HomebrewArgvExtension
end end
def build_from_source? def build_from_source?
include? '--build-from-source' or !ENV['HOMEBREW_BUILD_FROM_SOURCE'].nil? \ include? '--build-from-source' or !ENV['HOMEBREW_BUILD_FROM_SOURCE'].nil?
or build_head? or build_devel? or build_universal?
end end
def flag? flag def flag? flag