aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorXu Cheng2015-02-21 16:05:04 +0800
committerXu Cheng2015-02-21 17:01:29 +0800
commita3f1b006b4c35e0aaaf896711aceb319123241dd (patch)
treeafae68aa3bebb6e3cc5dd9974fb5445d87db7ae0 /Library/Homebrew
parentcef4603be962443eec79d09733e71eb04540366f (diff)
downloadhomebrew-a3f1b006b4c35e0aaaf896711aceb319123241dd.tar.bz2
bottle: revision is digits rather than string in the merge regex
Closes #37015. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/bottle.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 1836e5d96..913a22b1e 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -247,7 +247,7 @@ module Homebrew
odie 'Bottle block update failed!' unless string
else
update_or_add = 'add'
- string = s.sub!(/( (url|sha1|sha256|head|version|mirror|revision) ['"][\S ]+['"]\n+)+/m, '\0' + output + "\n")
+ string = s.sub!(/( ((url|sha1|sha256|head|version|mirror) ['"][\S ]+['"]|revision \d+)\n+)+/m, '\0' + output + "\n")
odie 'Bottle block addition failed!' unless string
end
end