aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-02-09 14:34:37 +0000
committerMike McQuaid2014-02-09 14:34:50 +0000
commitd8076311bc5d1956cd585309401bbf7601294ee6 (patch)
tree1cef36c185f00cc3222c1f6f1a326f08963cc724 /Library
parent7c8f922afd82f71ddfefb24560b5ca3746bf1904 (diff)
downloadhomebrew-d8076311bc5d1956cd585309401bbf7601294ee6.tar.bz2
bottle: fix --write messages.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/bottle.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 94028d02b..a45c8dcab 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -211,11 +211,11 @@ module Homebrew extend self
inreplace f.path do |s|
if s.include? 'bottle do'
- update_or_add = 'add'
+ update_or_add = 'update'
string = s.sub!(/ bottle do.+?end\n/m, output)
- odie 'Bottle block replacement failed!' unless string
+ odie 'Bottle block update failed!' unless string
else
- update_or_add = 'update'
+ update_or_add = 'add'
string = s.sub!(/( (url|sha1|sha256|head|version) ['"]\S*['"]\n+)+/m, '\0' + output + "\n")
odie 'Bottle block addition failed!' unless string
end