diff options
author | 2019-07-27 14:12:50 +0200 | |
---|---|---|
committer | 2019-07-27 14:12:50 +0200 | |
commit | ab72c5e4dc952ce51002689dc7197538534d5547 (patch) | |
tree | f488c40de426256fbefdc96fe4bc8ffe6e9bdf47 /worker_modules | |
parent | gen_determineargs.sh: determine_real_args(): Define global TAR_COMMAND variable (diff) | |
download | genkernel-ab72c5e4dc952ce51002689dc7197538534d5547.tar.gz genkernel-ab72c5e4dc952ce51002689dc7197538534d5547.tar.bz2 genkernel-ab72c5e4dc952ce51002689dc7197538534d5547.zip |
Make use of $TAR_COMMAND variable
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'worker_modules')
-rw-r--r-- | worker_modules/gkbuild.sh | 6 | ||||
-rw-r--r-- | worker_modules/unpack.sh | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/worker_modules/gkbuild.sh b/worker_modules/gkbuild.sh index 32940a14..41d27914 100644 --- a/worker_modules/gkbuild.sh +++ b/worker_modules/gkbuild.sh @@ -178,7 +178,7 @@ _gkbuild_main() { unset found_dyn_files fi - tar -caf "${GKPKG_BINPKG}" . \ + "${TAR_COMMAND}" -caf "${GKPKG_BINPKG}" . \ || die "Failed to create binpkg of ${P} in '${GKPKG_BINPKG}'!" } @@ -295,7 +295,7 @@ _initialize() { fi print_info 2 "$(get_indent 2)${P}: >> Unpacking required binpkg '${GKPKG_DEP}' ..." - tar -xaf "${GKPKG_DEP}" -C "${BROOT}" \ + "${TAR_COMMAND}" -xaf "${GKPKG_DEP}" -C "${BROOT}" \ || die "Unable to build ${P}: Failed to extract required binpkg '${GKPKG_DEP}' to '${BROOT}'!" done unset GKPKG_DEP @@ -448,7 +448,7 @@ _src_prepare() { _src_unpack() { cd "${WORKDIR}" || die "Failed to chdir to '${WORKDIR}'!" - tar -xaf "${GKPKG_SRCTAR}" \ + "${TAR_COMMAND}" -xaf "${GKPKG_SRCTAR}" \ || die "Failed to unpack '${GKPKG_SRCTAR}' to '${WORKDIR}'!" } diff --git a/worker_modules/unpack.sh b/worker_modules/unpack.sh index b0a03fcb..2706bc55 100644 --- a/worker_modules/unpack.sh +++ b/worker_modules/unpack.sh @@ -21,6 +21,6 @@ _unpack_main() { mkdir -p "${UNPACK_DIR}" || die "Failed to create '${UNPACK_DIR}'!" fi - tar -xaf "${UNPACK_FILE}" --directory "${UNPACK_DIR}" \ + "${TAR_COMMAND}" -xaf "${UNPACK_FILE}" --directory "${UNPACK_DIR}" \ || die "Failed to unpack '${UNPACK_FILE}' to '${UNPACK_DIR}'!" } |