From b20335b314f45d25e9c9f96a20575d7336cef1cb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 23 Sep 2013 18:23:23 +0100 Subject: [PATCH] bottle: add option to force no bottle revision. --- Library/Homebrew/cmd/bottle.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 9b45e3b6d0..607c4802ae 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -64,7 +64,8 @@ module Homebrew extend self begin bottle_revision += 1 filename = bottle_filename(f, bottle_revision) - end while master_bottle_filenames.include? filename + end while not ARGV.include? '--no-revision' \ + and master_bottle_filenames.include? filename if bottle_filename_formula_name(filename).empty? return ofail "Add a new regex to bottle_version.rb to parse the bottle filename."