aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/software_spec.rb
diff options
context:
space:
mode:
authorJack Nagel2014-03-13 19:51:23 -0500
committerJack Nagel2014-03-13 21:35:41 -0500
commitdf6fc206559060b72a29462b674279231a12509c (patch)
tree7e448423e0b485ec24fcb677b8bf35cf4a2714e7 /Library/Homebrew/software_spec.rb
parentee354c9e194069d8e7a92df1cd941b857ee01b38 (diff)
downloadhomebrew-df6fc206559060b72a29462b674279231a12509c.tar.bz2
Enable new patch implementation with compatibility layer
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