bottle: prevent bottling formula outside core or taps
Closes Homebrew/homebrew#47233.
This commit is contained in:
parent
61a47a4c0f
commit
f37f8b5c7a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user