Add `.incomplete` by regex. (#23265)
This commit is contained in:
parent
d02053c0a4
commit
cf7bdbc4cd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue