Remove useless ignore_interrupts
.
This commit is contained in:
parent
bcded854ce
commit
1b79e01c5b
@ -433,13 +433,11 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy
|
|||||||
rescue ErrorDuringExecution
|
rescue ErrorDuringExecution
|
||||||
raise CurlDownloadStrategyError, url
|
raise CurlDownloadStrategyError, url
|
||||||
end
|
end
|
||||||
ignore_interrupts do
|
|
||||||
cached_location.dirname.mkpath
|
cached_location.dirname.mkpath
|
||||||
temporary_path.rename(cached_location)
|
temporary_path.rename(cached_location)
|
||||||
symlink_location.dirname.mkpath
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
symlink_location.dirname.mkpath
|
||||||
FileUtils.ln_s cached_location.relative_path_from(symlink_location.dirname), symlink_location, force: true
|
FileUtils.ln_s cached_location.relative_path_from(symlink_location.dirname), symlink_location, force: true
|
||||||
rescue CurlDownloadStrategyError
|
rescue CurlDownloadStrategyError
|
||||||
raise if urls.empty?
|
raise if urls.empty?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user