aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/software_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
-rw-r--r--Library/Homebrew/software_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb
index 0349dd3dd..a3a37902a 100644
--- a/Library/Homebrew/software_spec.rb
+++ b/Library/Homebrew/software_spec.rb
@@ -91,6 +91,12 @@ class SoftwareSpec
def patch strip=:p1, io=nil, &block
patches << Patch.create(strip, io, &block)
end
+
+ def add_legacy_patches(list)
+ list = Patch.normalize_legacy_patches(list)
+ list.each { |p| p.owner = self }
+ patches.concat(list)
+ end
end
class HeadSoftwareSpec < SoftwareSpec