diff options
| author | Jack Nagel | 2014-07-10 12:38:09 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-07-10 12:42:54 -0500 | 
| commit | 2b9cfe9fa536ec730611f751f445e1a2b35b735b (patch) | |
| tree | cadc73d714055b4548727e50135d644da4534285 /Library/Homebrew | |
| parent | 07f0f60908f8bd40b7032ebaadcf16371f2f2136 (diff) | |
| download | brew-2b9cfe9fa536ec730611f751f445e1a2b35b735b.tar.bz2 | |
Legacy patches are never StringIOs
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/patch.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index 0f0677dec..04aade4f7 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -29,7 +29,7 @@ class Patch      case list      when Hash        list -    when Array, String, IO, StringIO +    when Array, String, IO        { :p1 => list }      else        {} @@ -37,7 +37,7 @@ class Patch        urls = [urls] unless Array === urls        urls.each do |url|          case url -        when IO, StringIO +        when IO            patch = IOPatch.new(url, strip)          else            patch = LegacyPatch.new(strip, url) | 
