Add `.incomplete` by regex. (#23265)

This commit is contained in:
Markus Reiter 2016-07-30 01:46:34 +02:00
parent d02053c0a4
commit cf7bdbc4cd
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class Hbc::CurlDownloadStrategy < Hbc::AbstractDownloadStrategy
end
def temporary_path
@temporary_path ||= Pathname.new("#{tarball_path}.incomplete")
@temporary_path ||= tarball_path.sub(%r{$}, ".incomplete")
end
def cached_location