aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/download_strategy.rb2
-rw-r--r--Library/Homebrew/extend/pathname.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 094e8265f..e3db1e914 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -209,7 +209,7 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy
Utils.popen_read(tool, "-f", cached_location.to_s, "-c") do |pipe|
File.open(target, "wb") do |f|
buf = ""
- f.write(buf) while pipe.read(1024, buf)
+ f.write(buf) while pipe.read(16384, buf)
end
end
end
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 6e704a372..71f2d6b0b 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -262,7 +262,7 @@ class Pathname
digest.file(self)
else
buf = ""
- open("rb") { |f| digest << buf while f.read(1024, buf) }
+ open("rb") { |f| digest << buf while f.read(16384, buf) }
end
digest.hexdigest
end