From 32dba72991ec2b4d526c36c04dc064fe33b269c8 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sun, 8 Nov 2020 19:40:45 +0100 Subject: [PATCH] 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. ``` --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 89a0fd6..8431b41 100644 --- a/main.js +++ b/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, "./"