Navigation Menu

Skip to content

Commit

Permalink
Don't try to apply a patch for MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 31, 2012
1 parent 0bcce8b commit cdbba92
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions mroonga.rb
Expand Up @@ -64,14 +64,17 @@ def caveats
private
def build_mysql_formula
mysql = Formula.factory("mysql")
have_patches = (mysql.method(:patches).owner == mysql.class)
class << mysql
def patches
file_content = path.open do |file|
file.read
if have_patches
def patches
file_content = path.open do |file|
file.read
end
data = path.open
data.seek(file_content.index(/^__END__$/) + "__END__¥n".size)
data
end
data = path.open
data.seek(file_content.index(/^__END__$/) + "__END__¥n".size)
data
end

def system(command_line, *args)
Expand Down

0 comments on commit cdbba92

Please sign in to comment.