software_spec: ignore bottles compatibility if --force-bottle is passed

Closes Homebrew/homebrew#38123.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2015-03-27 23:57:21 +08:00
parent 9b75afcf4a
commit c46e2dc196

View File

@ -63,7 +63,7 @@ class SoftwareSpec
def bottled? def bottled?
bottle_specification.tag?(bottle_tag) && \ bottle_specification.tag?(bottle_tag) && \
bottle_specification.compatible_cellar? (bottle_specification.compatible_cellar? || ARGV.force_bottle?)
end end
def bottle &block def bottle &block