diff options
| author | Jack Nagel | 2014-03-13 19:51:23 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-03-13 21:35:41 -0500 | 
| commit | df6fc206559060b72a29462b674279231a12509c (patch) | |
| tree | 7e448423e0b485ec24fcb677b8bf35cf4a2714e7 /Library/Homebrew/software_spec.rb | |
| parent | ee354c9e194069d8e7a92df1cd941b857ee01b38 (diff) | |
| download | homebrew-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.rb | 6 | 
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 | 
