Skip to content
Snippets Groups Projects
Commit e93792fd authored by Mike McQuaid's avatar Mike McQuaid
Browse files

bottle: fix --write messages.

parent 89e07d44
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment