aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/fetch.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/fetch.rb')
-rw-r--r--Library/Homebrew/cmd/fetch.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb
index 411753992..f150d8f16 100644
--- a/Library/Homebrew/cmd/fetch.rb
+++ b/Library/Homebrew/cmd/fetch.rb
@@ -63,7 +63,12 @@ module Homebrew
next if fetched_bottle
fetch_formula(f)
- f.resources.each { |r| fetch_resource(r) }
+
+ f.resources.each do |r|
+ fetch_resource(r)
+ r.patches.each { |p| fetch_patch(p) if p.external? }
+ end
+
f.patchlist.each { |p| fetch_patch(p) if p.external? }
end
end