aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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