Skip over "mirror" lines when inserting bottle block

This commit is contained in:
Jack Nagel 2014-05-23 20:42:36 -05:00
parent 1e638331ad
commit ff12b0e361

View File

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