From e93792fdefdf1ea09e9c38a7e5b03a04098e67ee Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 9 Feb 2014 14:34:37 +0000 Subject: bottle: fix --write messages. --- Library/Homebrew/cmd/bottle.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3