diff options
| author | Xu Cheng | 2015-09-14 20:06:27 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-10-19 21:41:36 +0800 |
| commit | d20d08b5fe5eda386981e2da07c1000d6fb4431d (patch) | |
| tree | 051224b975fe5b948c633748b32e5ff5657c6c28 /Library | |
| parent | 975771ab358ca582f6d5119c63bf32792735ac60 (diff) | |
| download | brew-d20d08b5fe5eda386981e2da07c1000d6fb4431d.tar.bz2 | |
bottle: fail if bottle is disabled
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/bottle.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index fb9d52ffe..4aef73eba 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -145,6 +145,12 @@ module Homebrew return ofail "Formula not installed or up-to-date: #{f.full_name}" end + if f.bottle_disabled? + ofail "Formula has disabled bottle: #{f.full_name}" + puts f.bottle_disable_reason + return + end + unless built_as_bottle? f return ofail "Formula not installed with '--build-bottle': #{f.full_name}" end @@ -288,6 +294,12 @@ module Homebrew ohai formula_name f = Formulary.factory(formula_name) + if f.bottle_disabled? + ofail "Formula #{f.full_name} has disabled bottle" + puts f.bottle_disable_reason + next + end + bottle = if keep_old f.bottle_specification.dup else |
