aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-09-23 18:23:23 +0100
committerMike McQuaid2013-09-23 18:23:23 +0100
commit0f557e1468bd491e8b750b811617d1aa76f2d86d (patch)
tree70dda707ec271540b690b94f1f17b685b8b3ce65 /Library
parent71813559ef1aa94c8c9de58a8c3f5fa2a0eb5d8a (diff)
downloadhomebrew-0f557e1468bd491e8b750b811617d1aa76f2d86d.tar.bz2
bottle: add option to force no bottle revision.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/bottle.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 9b45e3b6d..607c4802a 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."