Skip to content

Commit

Permalink
Make "retry" a keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Forgy authored and Eric Forgy committed Jul 15, 2016
1 parent 34a0d8d commit 910d235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WinRPM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function __init__()
end

@unix_only download(source::AbstractString) = (x=HTTPC.get(source); (bytestring(x.body),x.http_code))
@windows_only function download(source::AbstractString, retry = 5)
@windows_only function download(source::AbstractString; retry = 5)
filename = joinpath(dirname(@__FILE__),"..","cache",basename(source))
for i in 1:retry
run(BinDeps.download_cmd(source,filename))
Expand Down

0 comments on commit 910d235

Please sign in to comment.