aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2014-02-15 11:28:48 +0000
committerMike McQuaid2014-02-15 11:28:48 +0000
commit4bc82456ee915c0153505da9f4db9461071d0fe0 (patch)
treefc3dc69e3ed14a165ace08d813a0ec5813a27c20 /Library/Homebrew/cmd
parent457d409f8041564650d8fd90a252976f9cbd3257 (diff)
downloadbrew-4bc82456ee915c0153505da9f4db9461071d0fe0.tar.bz2
bottle: fail if there is no stable version.
Closes Homebrew/homebrew#26742.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/bottle.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index a45c8dcab..847fff072 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -108,6 +108,10 @@ module Homebrew extend self
return ofail "Formula not installed with '--build-bottle': #{f.name}"
end
+ unless f.stable
+ return ofail "Formula has no stable version: #{f.name}"
+ end
+
if ARGV.include? '--no-revision'
bottle_revision = 0
else