Kouhei Sutou
null+****@clear*****
Fri Aug 31 18:27:22 JST 2012
Kouhei Sutou 2012-08-31 18:27:22 +0900 (Fri, 31 Aug 2012) New Revision: cdbba921aab2b5ab0bc8bf9e4085d2b17f4fe723 https://github.com/mroonga/homebrew/commit/cdbba921aab2b5ab0bc8bf9e4085d2b17f4fe723 Log: Don't try to apply a patch for MySQL Modified files: mroonga.rb Modified: mroonga.rb (+9 -6) =================================================================== --- mroonga.rb 2012-08-31 12:34:56 +0900 (7df8641) +++ mroonga.rb 2012-08-31 18:27:22 +0900 (2eb4c36) @@ -64,14 +64,17 @@ class Mroonga < Formula 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) -------------- next part -------------- HTML����������������������������...下載