commit: 115571d97d3cbbd281ae233fdfff75c08c8b31da Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Fri Aug 30 20:30:41 2019 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Fri Aug 30 21:04:25 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=115571d9
gkbuild.sh: _gkbuild_main(): Make use of get_tar_cmd() This will allow us to use pxz when available. Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> worker_modules/gkbuild.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/worker_modules/gkbuild.sh b/worker_modules/gkbuild.sh index 213597a..cb2f385 100644 --- a/worker_modules/gkbuild.sh +++ b/worker_modules/gkbuild.sh @@ -181,8 +181,11 @@ _gkbuild_main() { unset found_dyn_files fi - "${TAR_COMMAND}" -caf "${GKPKG_BINPKG}" . \ - || die "Failed to create binpkg of ${P} in '${GKPKG_BINPKG}'!" + local -a tar_cmd=( "$(get_tar_cmd "${GKPKG_BINPKG}")" ) + tar_cmd+=( '.' ) + + print_info 3 "COMMAND: ${tar_cmd[*]}" 1 0 1 + eval "${tar_cmd[@]}" || die "Failed to create binpkg of ${P} in '${GKPKG_BINPKG}'!" if [ -n "${DU_COMMAND}" ] then