Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: worker_modules/
Date: Fri, 30 Aug 2019 21:41:34
Message-Id: 1567199065.115571d97d3cbbd281ae233fdfff75c08c8b31da.whissi@gentoo
1 commit: 115571d97d3cbbd281ae233fdfff75c08c8b31da
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 30 20:30:41 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 30 21:04:25 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=115571d9
7
8 gkbuild.sh: _gkbuild_main(): Make use of get_tar_cmd()
9
10 This will allow us to use pxz when available.
11
12 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
13
14 worker_modules/gkbuild.sh | 7 +++++--
15 1 file changed, 5 insertions(+), 2 deletions(-)
16
17 diff --git a/worker_modules/gkbuild.sh b/worker_modules/gkbuild.sh
18 index 213597a..cb2f385 100644
19 --- a/worker_modules/gkbuild.sh
20 +++ b/worker_modules/gkbuild.sh
21 @@ -181,8 +181,11 @@ _gkbuild_main() {
22 unset found_dyn_files
23 fi
24
25 - "${TAR_COMMAND}" -caf "${GKPKG_BINPKG}" . \
26 - || die "Failed to create binpkg of ${P} in '${GKPKG_BINPKG}'!"
27 + local -a tar_cmd=( "$(get_tar_cmd "${GKPKG_BINPKG}")" )
28 + tar_cmd+=( '.' )
29 +
30 + print_info 3 "COMMAND: ${tar_cmd[*]}" 1 0 1
31 + eval "${tar_cmd[@]}" || die "Failed to create binpkg of ${P} in '${GKPKG_BINPKG}'!"
32
33 if [ -n "${DU_COMMAND}" ]
34 then