bottle: prevent bottling formula outside core or taps

Closes Homebrew/homebrew#47233.
This commit is contained in:
Xu Cheng 2015-12-26 13:15:29 +08:00
parent 61a47a4c0f
commit f37f8b5c7a

View File

@ -149,6 +149,10 @@ module Homebrew
return ofail "Formula not installed or up-to-date: #{f.full_name}"
end
unless f.tap
return ofail "Formula not from core or any taps: #{f.full_name}"
end
if f.bottle_disabled?
ofail "Formula has disabled bottle: #{f.full_name}"
puts f.bottle_disable_reason