diff options
| author | Mike McQuaid | 2014-03-17 10:45:46 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-17 10:45:46 +0000 |
| commit | 4b435a4378765660e51fcce0ba98801f906e204a (patch) | |
| tree | f3b9f2b1483ef130e5578dee1d2a03fba09ee49c /Library | |
| parent | 9df75f8650f4214f37f5918b139167f9704af7f6 (diff) | |
| download | homebrew-4b435a4378765660e51fcce0ba98801f906e204a.tar.bz2 | |
brew-pull: handle syntax errors in formulae.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-pull.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-pull.rb b/Library/Contributions/cmd/brew-pull.rb index 84342ed55..42ab844ea 100755 --- a/Library/Contributions/cmd/brew-pull.rb +++ b/Library/Contributions/cmd/brew-pull.rb @@ -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 |
