cpt

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

commit 0da69002ff52a09b37f19b2c042c7ab44ff75688
parent b6330280d7f074d535228b9225b0aa9d74b13047
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue,  5 May 2020 23:03:46 +0300

kiss: revert to using keys instead of flags

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

diff --git a/kiss b/kiss @@ -321,11 +321,11 @@ pkg_extract() { die "$1" "Couldn't decompres ${src##*/}" } - "$tar" -xf "$src_dir/$1/$src_tar" || die "$1" "Couldn't extract $src_tar" + "$tar" xf "$src_dir/$1/$src_tar" || die "$1" "Couldn't extract $src_tar" # We now list the contents of the tarball so we can do our # version of 'strip-components'. - "$tar" -tf "$src_dir/$1/$src_tar" | + "$tar" tf "$src_dir/$1/$src_tar" | while read -r file; do printf '%s\n' "${file%%/*}"; done | # Do not repeat files. @@ -580,7 +580,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 ;; @@ -1059,7 +1059,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"