From e053700f60a76d4aa8420534951f68d777438635 Mon Sep 17 00:00:00 2001 From: Dewey Dunnington Date: Fri, 6 Oct 2023 12:29:42 -0300 Subject: [PATCH] allow override of binary version --- r/tools/nixlibs.R | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/r/tools/nixlibs.R b/r/tools/nixlibs.R index 60deca05cd172..722e7ae3f2647 100644 --- a/r/tools/nixlibs.R +++ b/r/tools/nixlibs.R @@ -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)) @@ -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