aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/patches.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/patches.rb b/Library/Homebrew/patches.rb
index 34a59cf2b..ee96450ed 100644
--- a/Library/Homebrew/patches.rb
+++ b/Library/Homebrew/patches.rb
@@ -3,13 +3,14 @@ class Patches
def initialize patches
@patches = []
return if patches.nil?
-
+ n = 0
normalize_patches(patches).each do |patch_p, urls|
# Wrap the urls list in an array if it isn't already;
# DATA.each does each line, which doesn't work so great
urls = [urls] unless urls.kind_of? Array
- urls.each_with_index do |url, n|
+ urls.each do |url|
@patches << Patch.new(patch_p, '%03d-homebrew.diff' % n, url)
+ n += 1
end
end
end