change remote dir structure
This commit is contained in:
parent
f847cc6b66
commit
aff6debca6
2 changed files with 11 additions and 11 deletions
|
|
@ -33,12 +33,12 @@ set_bin_path <- function(
|
|||
local_build_root, codename) {
|
||||
if (!build_for_minor) {
|
||||
path <- sprintf(
|
||||
"%s/__linux__/%s/latest/src/contrib",
|
||||
"%s/arm64/%s/latest/src/contrib",
|
||||
local_build_root, codename
|
||||
)
|
||||
} else {
|
||||
path <- sprintf(
|
||||
"%s/__linux__/%s/%s/latest/src/contrib",
|
||||
"%s/arm64/%s/%s/latest/src/contrib",
|
||||
local_build_root, codename, r_minor_version
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,11 +16,11 @@ add_to_package_index <- function(
|
|||
}
|
||||
|
||||
if (!build_for_minor) {
|
||||
local_bin_dir <- sprintf("%s/__linux__/%s/latest/src/contrib/", local_build_root, codename)
|
||||
remote_bin_dir <- sprintf("%s/__linux__/%s/latest/src/contrib/", bucket, codename)
|
||||
local_bin_dir <- sprintf("%s/arm64/%s/latest/src/contrib/", local_build_root, codename)
|
||||
remote_bin_dir <- sprintf("%s/arm64/%s/latest/src/contrib/", bucket, codename)
|
||||
} else {
|
||||
dir_out_bin <- sprintf("%s/__linux__/%s/%s/latest/src/contrib/", local_build_root, codename, r_minor_version)
|
||||
remote_bin_dir <- sprintf("%s/__linux__/%s/%s/latest/src/contrib/", bucket, codename, r_minor_version)
|
||||
dir_out_bin <- sprintf("%s/arm64/%s/%s/latest/src/contrib/", local_build_root, codename, r_minor_version)
|
||||
remote_bin_dir <- sprintf("%s/arm64/%s/%s/latest/src/contrib/", bucket, codename, r_minor_version)
|
||||
}
|
||||
|
||||
s3fs::s3_file_system(
|
||||
|
|
@ -66,11 +66,11 @@ upload_package_index <- function(
|
|||
}
|
||||
|
||||
if (!build_for_minor) {
|
||||
local_bin_dir <- sprintf("%s/__linux__/%s/latest/src/contrib", local_build_root, codename)
|
||||
remote_bin_dir <- sprintf("%s/__linux__/%s/latest/src/contrib", bucket, codename)
|
||||
local_bin_dir <- sprintf("%s/arm64/%s/latest/src/contrib", local_build_root, codename)
|
||||
remote_bin_dir <- sprintf("%s/arm64/%s/latest/src/contrib", bucket, codename)
|
||||
} else {
|
||||
dir_out_bin <- sprintf("%s/__linux__/%s/%s/latest/src/contrib", local_build_root, codename, r_minor_version)
|
||||
remote_bin_dir <- sprintf("%s/__linux__/%s/%s/latest/src/contrib", bucket, codename, r_minor_version)
|
||||
dir_out_bin <- sprintf("%s/arm64/%s/%s/latest/src/contrib", local_build_root, codename, r_minor_version)
|
||||
remote_bin_dir <- sprintf("%s/arm64/%s/%s/latest/src/contrib", bucket, codename, r_minor_version)
|
||||
}
|
||||
|
||||
s3fs::s3_file_system(
|
||||
|
|
@ -103,7 +103,7 @@ upload_package_index <- function(
|
|||
# }
|
||||
|
||||
# s3 <- paws.storage::s3(endpoint = endpoint, region = region)
|
||||
# s3$put_object(Body = pkgs_upload_local, Bucket = bucket, Key = "__linux__/rhel9/latest/src/contrib/PACKAGES")
|
||||
# s3$put_object(Body = pkgs_upload_local, Bucket = bucket, Key = "arm64/rhel9/latest/src/contrib/PACKAGES")
|
||||
|
||||
return(invisible(TRUE))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue