kou opened a new pull request, #55496:
URL: https://github.com/apache/arrow/pull/55496

   ### Rationale for this change
   
   `dev/tasks/linux-packages/apt/build.sh` assumes that the top-level directory 
in the source archive is `${PACKAGE}-${VERSION}/`. It needs special cases for 
`~dev` and `~rc` versions because their source archives use different top-level 
directory names.
   
   `dpkg-source` doesn't assume the top-level directory name. If the archive 
has only one top-level directory, it uses the directory whatever its name is.
   
   ### What changes are included in this PR?
   
   Extract the source archive like `dpkg-source` does:
   
   1. Extract the archive into a temporary directory.
   2. If the temporary directory has only one entry and it's a directory (not a 
symbolic link), rename it to `${PACKAGE}-${VERSION}`. Otherwise, rename the 
temporary directory itself to `${PACKAGE}-${VERSION}`.
   
   The `~dev`/`~rc` special cases are removed.
   
   ### Are these changes tested?
   
   Yes.
   
   ### Are there any user-facing changes?
   
   No.
   
   ### Was AI used for this PR?
   
   In accordance to the [AI generation 
guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code),
 please disclose below whether and how AI was used in this PR.
   
   **PR code and description written by:**
   
   - [x] Human
   - [x] AI
   
   **Reviewed before submission by:**
   
   - [x] Human
   - [x] AI
   - [ ] Not reviewed
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to