diff options
| author | Xu Cheng | 2015-12-26 13:15:29 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-12-26 18:08:44 +0800 |
| commit | f37f8b5c7ac97f5c370c55d3c2a447766bdc90c2 (patch) | |
| tree | 10d9049d7e4e2b49d66217167eafb80fb74264b3 /Library/Homebrew | |
| parent | 61a47a4c0fbad2d6fcf6ddd30cf1aa6be5e8cc9b (diff) | |
| download | brew-f37f8b5c7ac97f5c370c55d3c2a447766bdc90c2.tar.bz2 | |
bottle: prevent bottling formula outside core or taps
Closes Homebrew/homebrew#47233.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/bottle.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 4c629cdbb..83f1147c5 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -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 |
