Skip to content
Snippets Groups Projects
Commit f8b8186f authored by Markus Reiter's avatar Markus Reiter
Browse files

Reorder `downloader.cached_location` assignment.

parent 5e3bc855
No related branches found
No related tags found
No related merge requests found
......@@ -112,10 +112,10 @@ module Formulary
resource = Resource.new(formula_name) { url bottle_name }
resource.specs[:bottle] = true
downloader = CurlDownloadStrategy.new resource.name, resource
@bottle_filename = downloader.cached_location
cached = @bottle_filename.exist?
cached = downloader.cached_location.exist?
downloader.fetch
ohai "Pouring the cached bottle" if cached
@bottle_filename = downloader.cached_location
else
@bottle_filename = Pathname(bottle_name).realpath
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment