diff options
| author | Mike McQuaid | 2014-02-09 14:34:37 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-09 14:34:50 +0000 |
| commit | e93792fdefdf1ea09e9c38a7e5b03a04098e67ee (patch) | |
| tree | 0fe320916510407afec3fff88cc3858a22825aa1 /Library | |
| parent | 89e07d44f6238647ba30cef28a398e8d82522d86 (diff) | |
| download | brew-e93792fdefdf1ea09e9c38a7e5b03a04098e67ee.tar.bz2 | |
bottle: fix --write messages.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/bottle.rb | 6 |
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 |
