Skip to content
Snippets Groups Projects
Commit d3c8e2f9 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

brew-pull: handle syntax errors in formulae.

parent f115260a
No related branches found
No related tags found
No related merge requests found
......@@ -81,8 +81,10 @@ ARGV.named.each do |arg|
status, filename = line.split
# Don't try and do anything to removed files.
if (status =~ /A|M/) && (filename =~ %r{Formula/.+\.rb$}) || tap(url)
formula = File.basename(filename, '.rb')
changed_formulae << Formula.factory(formula)
formula_name = File.basename(filename, '.rb')
formula = Formula[formula_name] rescue nil
next unless formula
changed_formulae << formula
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment