diff options
| author | Josh Hagins | 2016-10-25 04:24:52 -0400 |
|---|---|---|
| committer | GitHub | 2016-10-25 04:24:52 -0400 |
| commit | ca540d881100055e95e0db1439e81b02c88bea40 (patch) | |
| tree | 072e59f109ebd842dd03b23ec2493c661be9fc36 /Library | |
| parent | 79e8cdd3ed8c7f5dee573648d55eb3d3e305de19 (diff) | |
| parent | 6a406763f306d88c52729343b4a65e9050f8981f (diff) | |
| download | brew-ca540d881100055e95e0db1439e81b02c88bea40.tar.bz2 | |
Merge pull request #1377 from buo/fix-download-restart
Fix cask's restarting incomplete downloads
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/download_strategy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/download_strategy.rb b/Library/Homebrew/cask/lib/hbc/download_strategy.rb index 4a601af2b..137af319a 100644 --- a/Library/Homebrew/cask/lib/hbc/download_strategy.rb +++ b/Library/Homebrew/cask/lib/hbc/download_strategy.rb @@ -105,7 +105,7 @@ module Hbc else had_incomplete_download = temporary_path.exist? begin - File.open(temporary_path, "w+") do |f| + File.open(temporary_path, "a+") do |f| f.flock(File::LOCK_EX) _fetch f.flock(File::LOCK_UN) |
