Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
GNU tar uses -J for decompressing .tar.xz files
Browse files Browse the repository at this point in the history
It worked most of the time because current versions of GNU tar guess the
compression format from the file name when no compression format has
been set. We ended up running tar with the --preserve-permissions
option, which is the default for superuser invocations.

Signed-off-by: Sven Wegener <[email protected]>
  • Loading branch information
Sven Wegener committed Jun 8, 2016
1 parent f52ceec commit 08a712c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/extract.pp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
$extract_tar = "${tar_command} --no-same-owner --no-same-permissions --strip-components=${strip_components} -xf ${src_target}/${name}.${extension} -C ${target}"
$extract_targz = "${tar_command} --no-same-owner --no-same-permissions --strip-components=${strip_components} -xzf ${src_target}/${name}.${extension} -C ${target}"
$extract_tarbz2 = "${tar_command} --no-same-owner --no-same-permissions --strip-components=${strip_components} -xjf ${src_target}/${name}.${extension} -C ${target}"
$extract_tarxz = "${tar_command} --no-same-owner --no-same-permissions --strip-components=${strip_components} -xpf ${src_target}/${name}.${extension} -C ${target}"
$extract_tarxz = "${tar_command} --no-same-owner --no-same-permissions --strip-components=${strip_components} -xJf ${src_target}/${name}.${extension} -C ${target}"

$purge_command = $purge ? {
true => "rm -rf ${target} && ",
Expand Down

0 comments on commit 08a712c

Please sign in to comment.