bottle: add option to force no bottle revision.

This commit is contained in:
Mike McQuaid 2013-09-23 18:23:23 +01:00
parent fd49e498fa
commit b20335b314

View File

@ -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."