aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-07-10 12:38:09 -0500
committerJack Nagel2014-07-10 12:42:54 -0500
commit4f990ad298e2f6aa3b6c541f77c1396a58a6d3ee (patch)
tree213a1fbbca7bc65cdb9a15af61b4f2b81c3e731c /Library
parentc0b99c031fec0a2096b85a458d7b42e3627560d8 (diff)
downloadhomebrew-4f990ad298e2f6aa3b6c541f77c1396a58a6d3ee.tar.bz2
Legacy patches are never StringIOs
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/patch.rb4
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)