bottle: use revision to find bottle block too.

This commit is contained in:
Mike McQuaid 2014-07-03 21:24:30 +01:00
parent 4001c6f8f1
commit 9c5943d97a

View File

@ -239,7 +239,7 @@ module Homebrew
odie 'Bottle block update failed!' unless string
else
update_or_add = 'add'
string = s.sub!(/( (url|sha1|sha256|head|version|mirror) ['"][\S ]+['"]\n+)+/m, '\0' + output + "\n")
string = s.sub!(/( (url|sha1|sha256|head|version|mirror|revision) ['"][\S ]+['"]\n+)+/m, '\0' + output + "\n")
odie 'Bottle block addition failed!' unless string
end
end