[ 
https://issues.apache.org/jira/browse/ARROW-17001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17567093#comment-17567093
 ] 

Kouhei Sutou commented on ARROW-17001:
--------------------------------------

The current binary-task.rb doesn't work for this use case. It flattens the 
directory structure.

It should work with the following change:

{noformat}
diff --git a/dev/release/binary-task.rb b/dev/release/binary-task.rb
index 2cedd9c734..0de0907dd0 100644
--- a/dev/release/binary-task.rb
+++ b/dev/release/binary-task.rb
@@ -1815,9 +1815,24 @@ APT::FTPArchive::Release::Description 
"#{apt_repository_description}";
 
           Pathname(artifacts_dir).glob(target_files_glob) do |path|
             next if path.directory?
+            # /.../${JOB_ID}/.../file ->
+            # ${JOB_ID}/.../file
+            #
+            # e.g.:
+            #   /.../test-ubuntu-default-docs/docs.tar.gz ->
+            #   test-ubuntu-default-docs/docs.tar.gz
+            relative_path = path.relative_path_from(artifacts_dir)
+            # ${JOB_ID}/.../file ->
+            # .../file
+            #
+            # e.g.:
+            #   test-ubuntu-default-docs/docs.tar.gz ->
+            #   docs.tar.gz
+            relative_path =
+              relative_path.relative_path_from(relative_path.dirname)
             destination_path = [
               rc_dir,
-              path.basename.to_s,
+              relative_path.to_s,
             ].join("/")
             copy_artifact(path, destination_path, progress_reporter)
           end
{noformat}


> [Release][R] Use apache artifactory for libarrow binaries.
> ----------------------------------------------------------
>
>                 Key: ARROW-17001
>                 URL: https://issues.apache.org/jira/browse/ARROW-17001
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: R
>            Reporter: Jacob Wujciak-Jens
>            Assignee: Jacob Wujciak-Jens
>            Priority: Blocker
>             Fix For: 9.0.0
>
>
> Move the pre-built libarrow binaries for the release version from nightlies 
> to the apache artifactory and add this to the release process/scripts.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to