cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 46819119907121b5f5e58c0f75c7f91323cc8b32
parent 0fe98b27962972c586962780c5961c0101a34279
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon,  4 May 2020 16:07:45 +0300

kiss: use option flags in 'tar' calls

Diffstat:
Mkiss | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/kiss b/kiss @@ -310,13 +310,13 @@ pkg_extract() { # extraction. Other filetypes are simply copied to '$mak_dir' # which allows for manual extraction. *://*.tar|*://*.tar.??|*://*.tar.???|*://*.tar.????|*://*.tgz) - decompress "$src_dir/$1/${src##*/}" | "$tar" xf - || + decompress "$src_dir/$1/${src##*/}" | "$tar" -xf - || die "$1" "Couldn't extract ${src##*/}" # Again, decompress but to 'tar tf -' this time. We get the # base files in the package. We use this to do our version # of 'strip-components'. - decompress "$src_dir/$1/${src##*/}" | "$tar" tf - | + decompress "$src_dir/$1/${src##*/}" | "$tar" -tf - | while read -r file; do printf '%s\n' "${file%%/*}" done | uniq | @@ -564,7 +564,7 @@ pkg_tar() { read -r version release < "$(pkg_find "$1")/version" # Create a tarball from the contents of the built package. - "$tar" cf - -C "$pkg_dir/$1" . | + "$tar" -cf - -C "$pkg_dir/$1" . | case ${KISS_COMPRESS:=gz} in bz2) bzip2 -z ;; xz) xz -zT 0 ;; @@ -1043,7 +1043,7 @@ pkg_install() { log "$pkg_name" "Extracting $tar_file" # Extract the tarball to catch any errors before installation begins. - decompress "$tar_file" | "$tar" pxf - -C "$tar_dir/$pkg_name" + decompress "$tar_file" | "$tar" -pxf - -C "$tar_dir/$pkg_name" [ -f "$tar_dir/$pkg_name/$pkg_db/$pkg_name/manifest" ] || die "'${tar_file##*/}' is not a valid KISS package"