aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-pull.rb6
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