From 73194f224a588ca2ed6b4136026c1c581b6bb8d0 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 15 Feb 2014 11:28:48 +0000 Subject: bottle: fail if there is no stable version. Closes #26742.--- Library/Homebrew/cmd/bottle.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3