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
commitb20335b314f45d25e9c9f96a20575d7336cef1cb (patch)
treecc2400864fcf3200cd85ce28ef7600604aed0a04 /Library
parentfd49e498fac9d048b99165fb4854be396e1067dc (diff)
downloadbrew-b20335b314f45d25e9c9f96a20575d7336cef1cb.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."