Skip to content

Commit

Permalink
allow override of binary version
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Oct 6, 2023
1 parent 0d89741 commit e053700
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions r/tools/nixlibs.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ thirdparty_dependency_dir <- Sys.getenv("ARROW_THIRDPARTY_DEPENDENCY_DIR", "tool


download_binary <- function(lib) {
binary_version <- Sys.getenv("LIBARROW_BINARY_VERSION", VERSION)
libfile <- tempfile()
binary_url <- paste0(arrow_repo, "bin/", lib, "/arrow-", VERSION, ".zip")
binary_url <- paste0(arrow_repo, "bin/", lib, "/arrow-", binary_version, ".zip")
if (try_download(binary_url, libfile)) {
if (!quietly) {
cat(sprintf("*** Successfully retrieved C++ binaries (%s)\n", lib))
Expand All @@ -98,7 +99,7 @@ download_binary <- function(lib) {
if (!quietly) {
cat(sprintf(
"*** Downloading libarrow binary failed for version %s (%s)\n at %s\n",
VERSION, lib, binary_url
binary_version, lib, binary_url
))
}
libfile <- NULL
Expand Down

0 comments on commit e053700

Please sign in to comment.