Symlinks are transformed as well, which leads into broken symlinks.
Adding the correct transformation scope flags here. https://www.gnu.org/software/tar/manual/html_section/tar_51.html mentions a way to fix this: ``` In addition, several transformation scope flags are supported, that control to what files transformations apply. These are: [...] `S' Do not apply transformation to symbolic link targets. ```
This commit is contained in:
parent
76fe8d7716
commit
32dba72991
1 changed files with 1 additions and 1 deletions
2
main.js
2
main.js
|
@ -89,7 +89,7 @@ async function main() {
|
|||
"tar",
|
||||
"--exclude-vcs",
|
||||
"--exclude", "./debian",
|
||||
"--transform", `s/^\./${package}-${version}/`,
|
||||
"--transform", `s/^\./${package}-${version}/S`,
|
||||
"-cvzf", `${buildDirectory}/${package}_${version}.orig.tar.gz`,
|
||||
"-C", sourceDirectory,
|
||||
"./"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue