From df6fc206559060b72a29462b674279231a12509c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 13 Mar 2014 19:51:23 -0500 Subject: Enable new patch implementation with compatibility layer --- Library/Homebrew/software_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Homebrew/software_spec.rb') 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 -- cgit v1.2.3