From 1c8323f9cc9022a9dba278058f5e405cdfbbc202 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sat, 21 Feb 2015 16:05:04 +0800 Subject: [PATCH] bottle: revision is digits rather than string in the merge regex Closes Homebrew/homebrew#37015. Signed-off-by: Xu Cheng --- Library/Homebrew/cmd/bottle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 1836e5d964..913a22b1e9 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