patches.rb: Fix warning thrown by Ruby 1.8.6

Need to be consistent with use of parenthesis in functions.
This commit is contained in:
Charlie Sharpsteen 2012-04-04 08:26:13 -07:00
parent 62a98753ec
commit 7ffa831718

View File

@ -91,7 +91,7 @@ private
# Write the given file object (DATA) out to a local file for patch
def write_data f
pn = Pathname.new @patch_filename
pn.write(brew_var_substitution f.read.to_s)
pn.write(brew_var_substitution(f.read.to_s))
end
# Do any supported substitutions of HOMEBREW vars in a DATA patch