diff options
Diffstat (limited to 'src/r3_hex_repo.erl')
-rw-r--r-- | src/r3_hex_repo.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/r3_hex_repo.erl b/src/r3_hex_repo.erl index dd8264f..0075e7f 100644 --- a/src/r3_hex_repo.erl +++ b/src/r3_hex_repo.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually -module(r3_hex_repo). -export([ @@ -161,7 +161,9 @@ tarball_url(Config, Name, Version) -> build_url(#{repo_url := URI, repo_organization := Org}, Path) when is_binary(Org) -> <<URI/binary, "/repos/", Org/binary, "/", Path/binary>>; build_url(#{repo_url := URI, repo_organization := undefined}, Path) -> - <<URI/binary, "/", Path/binary>>. + <<URI/binary, "/", Path/binary>>; +build_url(Config, Path) -> + build_url(Config#{repo_organization => undefined}, Path). tarball_filename(Name, Version) -> <<Name/binary, "-", Version/binary, ".tar">>. |